I'm having trouble finding a javascript that will allow a print button to print only the current page in LiveCycle Designer. The document that requires this is dynamic and the page number for any page can change at any time. Therefore, using a page number for first and last page will not work. Any ideas?
If this is the case then you need to first identify a form element that's on the page you want to print, then find the page from it, with the "layout.absPage()" function. Look it up in the XFA Object Reference.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script