I have a document which contain various codes, two of which look like:
[XFO = AN] [WAITPHOTO]
[XFO=AN] specifies the Image code which identifies the Image to be placed. [WAITPHOTO] specifies the formatting of text around Image.
Details of these two codes are in the attached document along with examples for both.
I need to run mail merge for such documents keeping in state the formatting, template asks for.
Could you please guide how can I do above.
Replacing [XFO=AN] with Image Merge field and then replacing it with actual Image during Mail Merge is fine but if you can suggest anything regarding formatting on the basis of additional code [WAITPHOTO], would be great.
Thanks for your inquiry. Maybe in your case it is better to insert images and text during find and replace process. In this case, you will be able to parse your “magic” tags and set the appropriate formatting to images and text.
Best regards.
In that case also, if you can suggest me how can I wrap text around Image on the basis of presence/absence of my magic tag [WAITPHOTO], it would be great.
To apply Image formatting, I need to verify the presence/absence of [WAITPHOTO] tag after [XFO=BS] tag with possibly one paragraph in between them. Please see my earlier attached document for detail.
Further, there may be multiple [XFO…] tags each with their own possible [WAITPHOTO] tag,
So also need a way if a particular [XFO…] tag is followed by [WAITPHOTO] tag.
Thanks for your request. I think, in your case it is better to use inline images and specify alignment of paragraphs where the images is placed as I described here: https://forum.aspose.com/t/80181
Best regards.
Thanks for your inquiry. I do not think, you need to insert additional paragraphs. I think it would be enough to set alignment of paragraph where mergefield is located.
Best regards.