Hi Friends,
Ima working on adobe form design from SAP
My requirement is.
I have two pages in my adobe form designed in SFP transaction.
But i want to control the printing of the pages according to my requirement.
1.First page 2 TIMES AND THEN Second page three times.
Depending on my requiremnet , i chnage the number of pages it should print
Like i must control how many times each page will be printed.
Please help me,
Regards,
sasi
If you drop a Print Button on your form, and go look at the "click" script, you'll see the line:
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
(I've copied over some API info at the end of this post.) But basically, for your scenario, you could try the following script:
// This prints the first page (page "0")
xfa.host.print(1, "0", "0", 0, 0, 0, 0, 0); // Print once
xfa.host.print(1, "0", "0", 0, 0, 0, 0, 0); // Print again
// This prints the second page (page "1")
xfa.host.print(1, "1", "1", 0, 0, 0, 0, 0); // Print once
xfa.host.print(1, "1", "1", 0, 0, 0, 0, 0); // Print twice
xfa.host.print(1, "1", "1", 0, 0, 0, 0, 0); // Print thrice
Print() method API:
Param1 (BOOL): If True (the default), will cause a UI to be presented to the user to obtain printing information and confirm the action.
Param2 (STRING): The zero-based indexes that define the inclusive start page.
Param3 (STRING): The zero-based indexes that define the inclusive end page.
Param4 (BOOL): If True, suppresses the cancel dialog box while the document is printing.
Param5 (BOOL): If True, the page is shrunk (if necessary) to fit within the imageable area of the printed page. If False, it is not.
Param6 (BOOL): If True, print pages as an image.
Param7 (BOOL): If True, print from end to start.
Param8 (BOOL): If True, annotations are printed.