Board index » cppbuilder » How to load RTF file to RichEdit
sky
CBuilder Developer |
sky
CBuilder Developer |
How to load RTF file to RichEdit2008-01-12 11:57:23 AM cppbuilder7 Hi all I can save the content of the TRichEdit object to a RTF file via SaveToFile() method of the TRichEdit->Lines, even if the RichEdit includes some OLE object(picture), but the OLE object can not display when I load the RTF file via LoadFromFile mothod, only the text in the file, but I can see the picture(OLE object) in the wordpad and Microsoft Word Any hint? TIA sky |
Tomasz Myrta
CBuilder Developer |
2008-01-13 02:52:10 AM
Re:How to load RTF file to RichEdit
sky napisal 2008-01-12 04:57:
QuoteHi all Regards, Tomasz Myrta |
sky
CBuilder Developer |
2008-01-13 11:20:20 AM
Re:How to load RTF file to RichEdit
Thank you
the result is same as the LoadFromFile method yes, the text formatting can be saved/loaded successfully by using LoadFromStream, but not for OLE objects I found the OLE interface include a way that using EDITSTREAM and a callback(EDITSTREAMCALLBACK), but unfortunately the result is same farther hint? sky "Tomasz Myrta" < XXXX@XXXXX.COM > ??????:47890c51$ XXXX@XXXXX.COM ... Quotesky napisal 2008-01-12 04:57: {smallsort} |
Mark Jacobs
CBuilder Developer |
2008-01-16 04:45:16 AM
Re:How to load RTF file to RichEdit
"sky" < XXXX@XXXXX.COM >wrote in message
Quotethe result is same as the LoadFromFile method a TImage! If you are trying to have text, tables and images in a document, then HTML and TCppWebBrowser may be your friends. -- Mark Jacobs www.jacobsm.com |
sky
CBuilder Developer |
2008-01-19 12:22:20 PM
Re:How to load RTF file to RichEdit
I can insert pictures into TRichEdit via LPRICHEDITOLE interface of the
RichEdit object and save the content into a RTF file successfully but can not load it back RichEdit object. "Mark Jacobs" < XXXX@XXXXX.COM >写入消息新闻:478d1b62$ XXXX@XXXXX.COM ... Quote"sky" < XXXX@XXXXX.COM >wrote in message |