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
BedrockMission!

Learn More

View all

Sign in to view all badges

Printing some copies of ine form via javascript/formcalc

Avatar

Avatar
Level 2
healejandro
Level 2

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
healejandro
Level 2

Likes

0 likes

Total Posts

10 posts

Correct Reply

0 solutions
View profile
healejandro
Level 2

25-09-2008

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

Replies

Avatar

Avatar
Boost 5
Level 7
gkaiseril
Level 7

Likes

13 likes

Total Posts

456 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 7
gkaiseril
Level 7

Likes

13 likes

Total Posts

456 posts

Correct Reply

2 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
gkaiseril
Level 7

25-09-2008

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.

Avatar

25-09-2008

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