Go Back   TX Text Control Community > TX Text Control Discussion and Support Forums > TX Text Control .NET

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.

Reply
 
Thread Tools Display Modes
  #1  
Old May 19, 2009
Anujith Anujith is offline
Registered User
 
Join Date: May 2009
Posts: 3
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
Reply With Quote
  #2  
Old May 22, 2009
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 4,083
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]
Reply With Quote
  #3  
Old May 27, 2009
Anujith Anujith is offline
Registered User
 
Join Date: May 2009
Posts: 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
Reply With Quote
  #4  
Old May 27, 2009
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 4,083
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]
Reply With Quote
  #5  
Old May 28, 2009
Shotgun Tom Shotgun Tom is offline
Registered User
 
Join Date: Mar 2009
Posts: 42
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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +1. The time now is 20:34:30.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH