trichview.com

trichview.support




Re: I cannot Import/Export any OLE objects from/to RTF?


Return to index


Author

Message

Sergey Tkachenko

Posted: 04/24/2004 23:52:27


Well, this is may be a solution.


While it's not implemented as a standard TRichView feature, you can try to

write exporting yourself using OnSaveItemToFile event.


> I don't know how to do an export of OLE objects to RTF, but importing

isn't

> that hard. It boils down to using the IRichEditOle interface.

>

> 1. You load the RTF into an OLE-enabled rich edit.

> 2. Using the IRichEditOle interface, see how many objects are in the rich

> edit.

> 3. Again using the IRichEditOle interface, loop through the objects.

> 4. If the object responds to OleRun(), extract it from the RTF, stuff it

> into a TOleContainer and insert it into the RVE.

>

> I suppose you could do something similar in reverse, moving the text and

> objects from RVE to RTF, but I haven't tried it.

>





Powered by ABC Amber Outlook Express Converter