RTF writer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RTF writer

Torsten Bonde Christiansen
Hi List.

I am looking for at component that can write RTF format, preferably like the TRichMemo:

http://wiki.lazarus.freepascal.org/RichMemo

but without the need for LCL.

In fpc 3.0 there is a RTF reader, but i have not been able to find a writer.

Kind regards,
Torsten


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: RTF writer

dmitry boyarintsev
On Fri, Aug 5, 2016 at 3:11 AM, Torsten Bonde Christiansen <[hidden email]> wrote:
I am looking for at component that can write RTF format, preferably like the TRichMemo:

http://wiki.lazarus.freepascal.org/RichMemo

but without the need for LCL.

In fpc 3.0 there is a RTF reader, but i have not been able to find a writer.

If nothing comes up, you could RichMemo sources as a starting point.  
Look at richmemortf.pas specifically for IntSaveStream.
It accepts TRIchMemo component but only as a source of text+styles information and could be replaced easily with your source of text+style. The rest of the code is non rich memo specific

thanks,
Dmitry

_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal