Welcome to Clarion Community Sign in | Join | Faq

Clarion Language and Runtime Library

Started by yazzy at 05-22-2008 4:00 AM. Topic has 1 replies.

Print Search
Sort Posts:    
   05-22-2008, 4:00 AM
yazzy is not online. Last active: 5/22/2008 3:52:48 PM yazzy

Top 500 Posts
Joined on 05-22-2008
Posts 1
How to Save a RTF file to Text
Reply Quote
Hi

How do I save a RTF file to plain text file?

Clarion Help
Save
This action writes the contents of the RTF control to a designated target. The drop list Mode specifies whether to write the contents in RichText or PlainText format.

What is the syntax do I have to use to differentiate Save RTF and Save Text

Thanks in adavnace
   Report 
   05-22-2008, 11:56 PM
Shankar is not online. Last active: 11/14/2008 4:04:22 PM Shankar

Top 10 Posts
Joined on 10-24-2005
Dubai, UAE
Posts 219
Re: How to Save a RTF file to Text
Reply Quote
Hi!

If you are using ABC ::

RTFControl is the object name of RTFControlClass.

So,

RTFControl.GetText(<StringVartoStoreText>) will store the plain text of the RTF Control into the STRING/CSTRING variable.

and

RTFControl.Save(<CStringVarFileName>, TEXT:PlainText) or RTFControl.SaveAs(TEXT:PlainText) will save the plain text of the RTF Control in the file. SaveAs method will ask you to choose the file.


Regards

Shankar
   Report 
Clarion Communi... » Clarion » Clarion Languag... » Re: How to Save a RTF file to Text

Powered by Community Server, by Telligent Systems