Linked picture in RTF file

General TRichView support forum. Please post your questions here
Post Reply
eLan
Posts: 8
Joined: Fri Apr 07, 2006 7:32 am

Linked picture in RTF file

Post by eLan »

I have a rtf file which contains a linked picture within some dir. It's fine loading this rtf file with RichViewEditor, however, when saving this file to RTF format, the linked picture is also embeded in the result RTF file. Is there anyway to keep the link structure without embeding the picture when saving in rtf format?

Thanks in advance.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Process OnSaveItemToFile and return RTF code for saving external pictures.
The code is like this:
{\field{\*\fldinst INCLUDEPICTURE "Docs/My%20Pictures/SEKRET.GIF" \\d }}
If path to the picture is stored in rvespImageFileName property, it can be accessed in this event using RVData.GetItemExtraStrProperty(ItemNo, rvespImageFileName, ImageFileName)
Post Reply