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

Mastering PowerBuilder

HomePrevious Lesson: Opening & Saving a Document In RTE Control
Next Lesson: Editing Document In RTE Control

Previewing & Printing Document From RTE Control

Print previewing a RTE document is simpler than DataWindow print previewing. You need to just call Preview() for the RTE control.
rte_1.Preview( True )

Similar to the DataWindow print preview, at run-time user can't edit the document in the RTE control when the RTE control is in the preview mode. However, you can modify the document through scripting. If you want to check whether the RTE is in the preview mode call IsPreview().

Call Print() to print the document from RTE control.
rte_1.Print(1, "", True, True)

The first argument specifies the number of copies and second one says the page range. If you do not specify the page range it will print all the pages. If you need to find out the number of pages it is going to print, call PageCount().
HomePrevious Lesson: Opening & Saving a Document In RTE Control
Next Lesson: Editing Document In RTE Control

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