| Hyderabad Jobs | Book Website | ![]() |
I Love Hyderabad | Hyderabad Colleges |
| Home | Business Emails | Hyderabad Classifieds | Contact Us | |
| 7 Wonders of Hyderabad | Web Hosting | Yellow Pages | Our Network | |
Mastering PowerBuilder
Opening & Saving a Document In RTE ControlThere is no function to open a file in RTE control; However, you can insert either an ASCII file or rich-text file into the RTE control. If you are inserting a RTF document make sure the version of RTF is below or equal to 1.2. PowerBuilder supports only 1.2 RTF version. That means, you can not insert a document produced in MS-Word 6 or 7 or 97. The following code fragment taken from the example application demonstrates inserting a document.
In the above code we prompt the user for the RTF file name using GetFileOpenName() and open that document in the RTE control using InsertDocument(). The second argument to the InsertDocument() says whether you want to clear the content of RTE control before you insert the document or insert the document at the cursor location.
Call SaveDocument() to save the document from the RTE control. In the above example we are saving the document to the same document. If you want to save the file as another file and want to get the file name from the user you can call GetFileSaveName().
|
| Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com |