Free Support Forum - aspose.com

Mail merge fields are not substituted

I’ve the following XML file, also see .docx file attached. Output.pdf from Saaspose does not have my variables substituted. I’m using mailmerge.ExecuteMailMerege("" + inputFileName, doc.InnerXml, SaveFormat.Pdf, OutputPath); with C# SDK

<?xml version="1.0" encoding="utf-8" ?> hey test 3 15

Hi Denis,

I cannot see any merge fields in your document. Please open your document in MS Words, select 'Insert' tab, select 'Quick Parts'-->'Field...' from the 'Text' section and then select 'MergeField' from the 'Categories' list of the 'Field' dialogue box and type a name for the field. This will allow you to insert a merge field and then you can use your code to execute mail merge.

Please follow these instructions and let us know if it works for you.

Best Regards,
Muhammad Ijaz
Support Developer, Saaspose Sialkot Team
http://www.saaspose.com

Indeed. Thanks a lot Muhammad! Please close this one