Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Printing some copies of ine form via javascript/formcalc

healejandro
Level 2
Level 2
Hi.

How can be printed two or more copies of one form or one body page via source code, i mean, via javascript or formcalc languages?

In which event must be inserted source code?

Which is exactly the source code?



I'm trying to do it, but I'm not reaching the way to do it



Thanks
2 Replies
gkaiseril
Level 7
Level 7
The syntax of the print command is:



$host.print( BOOLEAN param1, INTEGER param2, INTEGER param3, BOOLEAN param4,

BOOLEAN param5, BOOLEAN param6, BOOLEAN param7, BOOLEAN param8 )



You need to change parameter 2 to the zero based start page number as a string, parameter 3 to the zero based page number as a string, and parameter 7 to 1 to use the values of parameter 2 and 3.



So if you have a 25 page PDF and you want a button to print pages 4 and 5 you would change the default code to:



print(0, 3, 4, 0, 0, 0, 1, 0)



More information is contained in the "Scripting Reference" under LiveCycle Designer's "Help" menu.
Not applicable
But if you want to print all the document and copies of several pages, I mean, to set parameters like you do in the print dialog box but with javascript or formcal code