Expand my Community achievements bar.

Printing a document

Avatar

Level 6
Hi,



In my Livecycle PDf form I have a print button that will print all the pages of the document using this script:



xfa.host.print(0, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);



If the user clicks on the button, the document will print correctly. It will be sent to the printer spool until the end.



However, if I call that event in a form/document event using this code:



xfa.resolveNode("P26.Print").execEvent("click");



I realize that the document will start to be sent to the printer spool, however, it will be stop sending and the spool will be clean. It seems that the call I´m making to the event is asyncronous, and so, after the print command, the code returns to the caller event.



Is ther a solution to this?



Thank you
0 Replies