Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Advanced PowerBuilder

HomePrevious Lesson: PrintStart Event
Next Lesson: PrintEnd Event

PrintPage 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.
HomePrevious Lesson: PrintStart Event
Next Lesson: PrintEnd Event

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com