Replacing a text string with an image


#1

We’re evaluating Aspose.Word as a possible replacement for our current
MailMerge process. Currently we provide support for replacing a
text string with an image (bmp/tiff/jpg). For example, the
customer may include something like ‘{MyPicHere}’ and that string needs
to be replaced by the user’s photo. What is the best way to
handle this?



Regards,

Andy


#2

Please see end of this topic where a string was replaced with a table.

http://www.aspose.com/Community/Forums/37125/ShowPost.aspx

Basically, you use Range.Replace to take you to the place in the document and then use custom replace handler and DocumentBuilder.MoveTo and DocumentBuilder.InsertImage to insert the image.


#3

Thanks! That did the trick.



Andy