Thank you for your post.
There is a known issue with Save as PDF where the resulting PDF on Windows displays the error message:
"An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem.”
This issue is caused by a blank portal on the layout.
I have attached your post to the original report. When more information becomes available, I will post again.
The current workaround is to set a "Hide condition when" for the portal being blank.
I am having the same issue on Mac, FMP14.
Can you help me with your workaround: "Hide condition when".
How do I test for "portal being blank" ?
My layout has five portals, each showing only one related record, beginning at record 1,2,3,4,&5 individually.
I would like to add to this as it seems your information does not line up with my experiences with this same issue.
I have recently noticed that our reports that are saved as PDF documents are showing up incorrectly, however, I have noticed the following discrepancies:
- The reports do not save the same from every computer. Some computers that save the reports cause the same issues as the OP whereas others are not prone to the same issues. Computers are all running Windows 7 64 bit and are on the same network, or connecting via VPN. This issue has presented on both local and VPN connections
- The reports, although errors present in Adobe Reader, display and can be read correctly in Foxit Reader 100% of the time this issue has presented.
- Not one of our reports has been generated from a layout that has an empty portal. Our reports are such that a report would be empty if there was an empty portal.
I hope this information helps to give you further insight into this issue as I would also like to know how and why this is happening and also how it can be rectified.
The problem occurs when printing (or in the case on a Mac, entering Preview
mode). If even 1 portal on the layout has no records to display, the entire body
of the layout is blank.
The workaround I used is Hide object when- Sum (Portal::NumericSerialNumber) <
On Sat, Nov 21, 2015 at 12:43 AM,
But that's just it. I do not have empty portals on my layout.
I have 1 portal and if I hide it, I have no data in my report
And to clarify my situation, The exact same report can be generated from a different computer, with no apparent issues.
It sounds like you have an entirely different issue then. For me, it's only on
Windows, and only when any portals have no data to display.
>> But that's just it. I do not have empty portals on my layout.
I have 1 portal and if I hide it, I have no data in my report>>
On Tue, Nov 24, 2015 at 3:13 PM,
Your “hide the portal when” example has helped me to clear up my Mac layout for Save as PDF with a suitable workaround.
It's not a totally different issue. The underlying issue is the same. The PDF still saves with errors and open with some records missing.
If anything it is an expansion of the issues you are having. It points to the fact that this issue may not be contained to one specific layout anomaly.
I would be interested to find out if the reports that were displaying incorrectly for you can be opened in a program other than Adobe Reader. Are you in a position to be able to test that?
The file fails with Adobe Read (error message from Adobe Reader).
The file successfully opens (with all data it seems) with Safari, Google Chrome, Preview on on Mac.
The PDF files created on Windows that appears to be corrupted open without a
hitch on a Mac with Preview. I don't have Adobe on my Mac to check that out.
Sent using CloudMagic
On Wed, Nov 25, 2015 at 4:56 PM,
Yeh that is the same issue as I am having.
Do all of your files save across a network? or are they saving locally?
I can preview a report and save as PDF locally from the Preview without having any of these issues.
actually, scratch that. even that causes issues.
I'm completely stumped as to why this is happening!!
OK so, just an update.
Upon further investigation, I will admit, I realised I made a mistake (hard as that is to say)
I have multiple layout on my Report layout, but I was only referring to my main layout that has 1 portal. Silly mistake I know!!
Now, I used the Hide Object When condition based on a container in my portal being empty, however, The portal is still hiding at times when the container is not empty.
Just wondering, does this Hide Object When condition work based on all records in a portal, or the first record only?
Can you make it hide the portal based on the portal itself being empty? if so, how? My portal is filtered (by container != "")