| Home | Previous Lesson: PrintStart Event Next Lesson: PrintEnd Event |
This event occurs for each page printed (just before the page gets printed. Please note that, RetrieveRow event occurs after the row is retrieved by PowerBuilder, but before it displays on the screen). This event gets PageNumber that will be printed as well as the number of the copy, Copy as parameters to this event.
// Object: DataWindow dw_product in w_product_master window
// Event: PrintPage
w_mdi_frame.SetMicroHelp( "Printing Page # " + &
String( PageNumber) )
In fact, you need not code the above script, because, when you call DataWindow's Print() function with TRUE as an argument, PowerBuilder automatically displays the page number being printed and also allows you to cancel if needed.
If you want to skip printing a particular page, return 1 as the return value from this event.
| Home | Previous Lesson: PrintStart Event Next Lesson: PrintEnd Event |