Hi, I have come across a strange problem.
I have a form with multiple pages, some are visible on the screen and some are hidden but should print. I thought it would be rather simple to set the visiblitiy to present on prePrint and hide the pages again on postPrint.
But, and here comes the problem, if I use the print button the hidden pages are set to visible on the screen but they don’t print. If I use ctrl+p instead the pages are set to visible on the screen and do print. Why??
I tried to set the relevant property of the pages to print to be relevant = “+print” but that didn't change anything.
I also tried to change the target version from 8.1 to 9.0 – no success.
Can someone please help me?
Kirstine
Solved! Go to Solution.
Views
Replies
Total Likes
So I am confused .....is it now printing th eway you want? If not can you email the form to LiveCycle8@gmail.com and I will lok into it. Please include a description of you rissue in the email.
Paul
Views
Replies
Total Likes
Which version of Acrobat/Reader are you using to view the form? What version is your template targeting?
Paul
Views
Replies
Total Likes
Hi paul
I use Acrobat Pro 9.4.5 but I have tested the form in Reader 10.1.1 on a virtual machine as well.
I have tried to set the template target version to 8.1 and 9 but that didn’t make any difference.
However, I think I have come a bit closer to what happens. When I use ctrl+p the print range in the printer settings menu is set to Print Range = All.
But when I use the print button (I use LiveCycles standard print button) the printing range is suddenly set to Print Range = Pages: 1
I even made a new form just to test this issue, and to make sure that the form didn’t contain any trashy leftover scripts that could interfere with the printing and show/hide pages.
As I understand the script on print button this part (marked in yellow) should make shure that all visible pages print.
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
Regards Kirstine
Views
Replies
Total Likes
So I am confused .....is it now printing th eway you want? If not can you email the form to LiveCycle8@gmail.com and I will lok into it. Please include a description of you rissue in the email.
Paul
Views
Replies
Total Likes
After som e-mailing Paul gave me this solution:
"comment out the xfa.host.print command and put the command app.execMenuItem("Print") this will work on your button (it is actually hitting the Print command in the Acrobat menus.)"
And he also wrote:
"Ok I figured this out ......
It has to do with the order that things are happening .....
Compare that to what happens when you hit the Print button outside of the form.
I issue is that you are getting the pagecount before the 2nd page is adjusted. The way you are doing it now using the app.execMenuItem is the way to do it going forward. "
Thank you once for for all your help.