` Printed Icetips Article

Icetips Article



Windows API: Saving RTF data to text
2004-03-16 -- Jim Kane
 
Newsgroups: softvelocity.public.clarion6

> I need to copy the contents of a RTF field (STRING 1024) to non-RTF field (STRING
1024).
>
> Is any way how to easy remove the RTF attributes from the string field and copy
> only the text?

The easiest way is to load the rtf into an rtf control and save it as text or call the
win32 api getwindowtext() and getwindowtextlength() after the rtf is loaded into the
control.

jim kane



Printed November 23, 2024, 10:19 pm
This article has been viewed/printed 35303 times.
Google search has resulted in 15 hits on this article since January 25, 2004.