|
|
Clarion Language and Runtime Library
Started by yazzy at 05-22-2008 4:00 AM. Topic has 1 replies.
 
 
|
|
Sort Posts:
|
|
|
|
05-22-2008, 4:00 AM
|
yazzy
Joined on 05-22-2008
Posts 1
|
How to Save a RTF file to Text
|
|
|
|
|
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
Joined on 10-24-2005
Dubai, UAE
Posts 219
|
Re: How to Save a RTF file to Text
|
|
|
|
|
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
|
|
|
|
|
|