- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
In LC Designer you do not (as far as I know) have as much access to print properties than you do in Acrobat (which uses printParam).
The XFA print command had eight parameters. The second and third parameters specify the start page and finish page for printing, based on a zero numbering system.
I think that you will be able to specify a start page and an end page using javascript (eg 3-5). But it would be more complicated to specify a range with gaps (eg 3-4,6,8).
The standard XFA command in a print button is:
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
The third parameter is looking at the total number of pages. You can change this to refer to values of objects in your form that relate to the start and finish pages to be printed.
xfa.host.print(1, (NumericField1.rawValue -1).toString(), (NumericField2.rawValue -1).toString(), 0, 1, 0, 0, 0);
Or you could set up an if statement to look at a number of objects in the form and determine the start and finish pages.
I think this is as far as you can take it. The only other alternative is calling the print command a number of times to deal with gaps in the printing range, but this may become tiresome for the user.
Good luck,
Niall
Views
Replies
Total Likes