Page 1 of 1
RichViewEdit and images
Posted: Tue Jun 06, 2023 12:42 pm
by Marcer
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?
Re: RichViewEdit and images
Posted: Wed Jun 07, 2023 9:18 am
by Sergey Tkachenko
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.
Re: RichViewEdit and images
Posted: Tue Feb 25, 2025 6:07 pm
by Marcer
Does this also work if the content of the TRichViewEdit is RTF?
Re: RichViewEdit and images
Posted: Wed Feb 26, 2025 9:37 am
by Sergey Tkachenko
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.