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.
Linked picture in RTF file
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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)
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)