Replace text with an Image

General TRichView support forum. Please post your questions here
Post Reply
DelphiDude
Posts: 17
Joined: Sun Mar 27, 2016 5:15 pm

Replace text with an Image

Post by DelphiDude »

I have worked out the find text and replace, now i am looking to find text and replace with image.
Find <IMAGE_001> and replace it with a bitmap/jpeg image.
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

It's the same.
Instead of

Code: Select all

 if rve.SearchText(...) then
   rve.InsertText(...);
write

Code: Select all

 if rve.SearchText(...) then
   rve.InsertPicture(...);
Post Reply