|
|||||||
| TX Text Control .NET Please use this forum for TX Text Control .NET support only. If you need support for a different product, please use the appropriate forum. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
To Retreive RTF code
Hi,
Downloaded the trail version of Textcontrol (V15.NET) and was checking whether it meets my requirement. I would like to know whether its possible to retrieve the RTF code when the data on the text control is saved as RTF document. That is, RTF file will be generated when we save the document as "RTF". But before converting the details to RTF document, I would like to retreive the RTF code.. that is RTF code with out any headers or footers. For eg:., consider "Hello Word" is written on the TXTextcontrol and its saved as RTF file. I would like to retreive the RTF code pertaining to "Hello World" only and except header and fooler tags like "{\rtf1" OR "\par }". Is this possible using this utility. Thanks in advance |
|
#2
|
||||
|
||||
|
Re: To Retreive RTF code
Yes, that is possible:
You can either delete the headers and footers and save the document or you can select and save the part you want to save with the Selection method.
__________________
Regards, Gunnar Giffey, TX Text Control [Forum Administrator] |
|
#3
|
|||
|
|||
|
Re: To Retreive RTF code
Thank you Gunnar Giffey for your reply.
Actually I dont want to save it as RTF file. Rather I would like to convert it to RTF code so that I can insert this retreived code to another RTF template. When we use "Save" method an RTF file will be created. Rather than this I would like to retreive the RTF code of the selected text. I hope you understood my requirement. Is there any way I can implement this using TX Textcontrol. Please confirm Thanks and Regards Anujith Sankar |
|
#4
|
||||
|
||||
|
Re: To Retreive RTF code
TX Text Control always saves complete documents, so it is not possible to retrieve just a part of RTF code.
Of course, you could use the .NET framework's String functions to parse the resulting RTF document for the text.
__________________
Regards, Gunnar Giffey, TX Text Control [Forum Administrator] |
|
#5
|
|||
|
|||
|
Re: To Retreive RTF code
The key to obtaining/viewing code in an RTF document is not saving... but opening.
If you want to view a file with it's native RTF code then load it as a plain text file. Then you can copy and paste whatever rtf code you wish. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TX writes wrong code page in rtf, creates keyboard switching problem | David Burson | TX Text Control .NET | 2 | February 13, 2009 21:07:27 |
| Save and load RTF text in Clarion | Jack Partridge | TX Text Control ActiveX | 1 | August 20, 2008 13:12:51 |
| RTF document fails to load due to error code 01-1D09 | ktenedios | TX Text Control .NET | 1 | March 18, 2008 16:31:30 |
| Issues loading particular RTF document in TXTextControl | ktenedios | TX Text Control .NET | 3 | March 18, 2008 16:16:44 |
| Large RTF file size with Images | siveyjos | TX Text Control ActiveX | 3 | August 14, 2007 15:07:18 |