Linked images in RTF?
Posted: Fri Jun 13, 2025 10:30 pm
Still evaluating the trial so I don't have the source yet to dig into it, but does the TRichViewEdit support the concept of linked images, where the image is not embedded in the RTF but instead can contain something like a link describing an external image in a database for which I can parse out from an event like OnImportPicture and pull the image from the database and display in the editor as if it was embedded? Then when saving the RTF back into the database, the images are not embedded in the RTF, just the original image link (or newly added image link from taking a photo for example, and somehow added as a linked image) is retained?
I did see OnImportPicture, which looks to be what I want to be able to pull the image out of the database, but not sure on the method used in TRichViewEdit to get that to be added into the RTF that would invoke OnImportPicture, and again to not save the retrieved image as part of the RTF, just retain the link. (I didn't see in the Help on how to add/insert a linked image). I also would like to see the RTF format so I can convert my existing RTF from the WPTools linked image format into TRichView linked image format, without having to go thru the RTF spec and try to figure it out
Eric
I did see OnImportPicture, which looks to be what I want to be able to pull the image out of the database, but not sure on the method used in TRichViewEdit to get that to be added into the RTF that would invoke OnImportPicture, and again to not save the retrieved image as part of the RTF, just retain the link. (I didn't see in the Help on how to add/insert a linked image). I also would like to see the RTF format so I can convert my existing RTF from the WPTools linked image format into TRichView linked image format, without having to go thru the RTF spec and try to figure it out

Eric