We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

Mail Merge MS Word Document from XML Data

Hi

I have a word document which has 5 merge fields in a table, using words catalog template, cannot get it to mailmerge in the API no errors produces document. It might be the structure of my xml, any ideas.

Hope that makes sense.

@IansResearch

Please share your template and data file along with the sample code. We will look into it and will guide you. Please also check the following documentation for sample templates and data.

Hi

Managed to get it working, thank you check examples again. Another question is possible to put mailmerge fields in the header part of a document.

Thank you

@IansResearch

Yes, you can add Mail Merge fields in the header of the template. Please find a sample template and data file for reference.HtmlImageTemplate.zip (13.6 KB)