RunPage

Posted by: Rolf

RunPage - 05/10/06 09:29 AM

I have a single page form that needs to print a certain number of times depending on a database. I created the runpage as the first page with a PPTalk object that basically reads:

-----------------------
define(&i,integer,1)
for(&i,1,1,strtoint(@(2,1,4)))
execpage('OverlayPage')
showpage()
endfor()
-----------------------

The second page is the cover sheet that prints the department name and the number of sets to print from the database. The third page is the overlay page that contains nothing more than a pdf image.

The idea is to print page 3 (OverlayPage) x number of times based on the data. It all works well except the order of the cover sheet. Currently, my form prints the number of times indicated but the cover sheet summarizing the department and the number of set printed prints AFTER the form has printed although the cover sheet is page two rather than the first page. Is there something I can do to have the cover sheet print prior to the form?

- Wanna B. Expert
Posted by: Philippe F.

Re: RunPage - 05/10/06 10:36 AM

Have you tried adding
execpage('Page2')
showpage()

to your existing code, but before your loop that prints the overlay page?
Posted by: Rolf

Re: RunPage - 05/10/06 11:03 AM

Adding this code AND reordering the form pages worked out well. Thank you for the input.