Free Support Forum - aspose.com

How to add a Image via xml in Word using Sappose Api

I want to add dynamic image using xml via word using Sappose Api Php


Submitted from: http://saaspose.com/blog/category/saaspose-words

Hi Allen,

You need to perform following steps for this purpose:

1. Add a merge field with name 'Img' in your Word document
2. Add Img tag in XML e.g.
<?xml version="1.0" encoding="utf-8" ?>

image.jpg

3. Upload image to Saaspose storage
4. Use ExecuteMailMerge method of the PHP SDK by passing your Word document and above mentioned XML as parameters

Please also check the examples I sent you via ticket 208. A dynamic image 'p2.jpg' is being added via XML in those examples. You can change that image according to your requirement.

Best Regards,
Muhammad Ijaz

Support Developer, Saaspose
Sialkot Team
http://www.saaspose.com

Hi Allen,

Is your issue resolved with the last suggestion from our team? Are you able to fulfill your requirement with the help of last reply? If you still need any assistance or have further questions, please do let us know. We'll be glad to help you.

Thanks & Regards
Shahzad Latif
Saaspose Support Team.