WPCubed Product Support

How to replace text with image?

Hi!! Wanna know if there's a way to replace a especific text (a token) created by me, with an image. I need this cause I have to put an digital signature (signature of the user) aumatically in the position determined by the user. This signature is an Image stored in a data field. Any help is welcome!! And sorry for the bad english!!

thanks!

#1 ♥ 0
14.3k Views 2 users read 1 min
support
WPRichText1.Finder.ToStart;
 while WPRichText1.Finder.Next('[sig]') do
 begin
       WPRichText1.CPPosition := WPRichText1.Finder.FoundPosition;
       WPRichText1.Finder.FoundText := '';
       WPRichText1.TextObjects.InsertCopy(Image1.Picture.Graphic);
 end;
 WPRichText1.DelayedReformat;
#2 ♥ 0

Thanks! I tried the code and it worked great!! An sorry for posting in the wrong place 😮ops:

Thanks!!!

#3 ♥ 0
support

Hi,

No, you posted at correct place (the WPTools 5 group). Since this is a question of general interest I moved it to FAQ.

Julian

#4 ♥ 0