RichViewEdit and images
RichViewEdit and images
Is it possible to have an image included by reference to a physical file in the RVF without the image content being included in the RVF?
-
- Site Admin
- Posts: 17692
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: RichViewEdit and images
It is possible, but only for all images in the document.
Exclude rvfoSavePicturesBody from RVFOptions, and images will not be saved inside files. When loading file, OnRVFPictureNeeded event occurs.
Exclude rvfoSavePicturesBody from RVFOptions, and images will not be saved inside files. When loading file, OnRVFPictureNeeded event occurs.
Re: RichViewEdit and images
Does this also work if the content of the TRichViewEdit is RTF?
-
- Site Admin
- Posts: 17692
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: RichViewEdit and images
No, for RTF it's a bit more difficult.
RTF files can contain references to external pictures via INCLUDEPICTURE field.
You need to implement saving pictures as this field type. It can be done using OnSaveItemToFile event.
The example can be found in the demo projects, in Demos\DelphiUnicode\Assorted\Graphics\SharedImages\ demo.
RTF files can contain references to external pictures via INCLUDEPICTURE field.
You need to implement saving pictures as this field type. It can be done using OnSaveItemToFile event.
The example can be found in the demo projects, in Demos\DelphiUnicode\Assorted\Graphics\SharedImages\ demo.