Avatar

Level 10

Hi,

The print method requires eight parameters.

The second parameter "0" is the start page for the printout, using a zero-based numbering system. Eg "0" is the first page.

The third parameter (xfa.host.numPages -1).toString() is a calculation for the last page to be printed in the range. It calculates the total number of pages and then subtracts 1 to get it into the zero-numbering system and then converts it to a string for the print method.

So in your case the Print Instructions button would have the following script in the click event (changing the finish page):

xfa.host.print(1, "0", "5", 0, 0, 0, 0, 0);

And your Print the Rest of the Form button would have the following (changing the start page):

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

Make sense?

Niall