Topic Options
#19022 - 05/10/06 09:29 AM RunPage
Rolf Offline
OL User

Registered: 06/28/02
Posts: 75
Loc: Miami, FL
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

Top
#19023 - 05/10/06 10:36 AM Re: RunPage
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1926
Loc: Objectif Lune, Montreal, Qc
Have you tried adding
execpage('Page2')
showpage()

to your existing code, but before your loop that prints the overlay page?
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#19024 - 05/10/06 11:03 AM Re: RunPage
Rolf Offline
OL User

Registered: 06/28/02
Posts: 75
Loc: Miami, FL
Adding this code AND reordering the form pages worked out well. Thank you for the input.

Top