Page 1 of 1

Linked picture in RTF file

Posted: Sat Apr 08, 2006 8:35 am
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.

Posted: Mon Apr 10, 2006 10:01 am
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)