This topic is locked

Print On Load Event - Page Break?

6/20/2007 3:57:30 PM
ASPRunnerPro General questions
S
stealthwifi author

Heres what I'm thinking
On the Print On Load Event Page-
Sub(PrintOnLoad)
Foreach(record) i = 1 Step 5

<br style="page-break-before:always;">

Next
EndSub
I know the syntax is probably horribly wrong but will the logic work?

Basically I just need a page break after 5 records so only 5 can print on a page.

I am not sure how you would define an entire record in Asprunner for the loop but if it can be done and steps by 5 so after 5 records the page break takes place would that work?

Any help on the code is very, very much appreciated. I am still learning and hopefully one day will be able to answer more questions then I post.
Thank you all again for all your help!

Cheers,

Stealth-

Sergey Kornilov admin 6/22/2007

This won't work as PrintOnLoad event is executed just once.
Wait for the next version that will have more events available. You will be abl to execute your code after each record is displayed.