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

Free Support Forum - aspose.com

Duplicate mergefields

I am developing in VB.NET with a 2 page Word 2013 .docx file as the template. Page 1 contains regions with mergefields in them. The surrounding text in English. Page 2 contains the same regions with the same mergefields, only the surrounding text is in Spanish. I have a dataset containing the XMLdata and an Aspose.Words.Document object. I read the Data into the dataset, the run MailMerge.ExectureWithRegions(dataset) and save it to a file. The output file merges the data correctly on page 1, but not on page 2. Instead, page 2's mergefields appear as literal characters. Can you help me, please? Thanks in advance


Hi Marty,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.

  • Please attach your input Word document.
  • Please

    create a standalone/runnable simple application (for example a Console
    Application Project
    ) that demonstrates the code (Aspose.Words code) you used to generate
    your output document

  • Please attach the output Word file that shows the undesired behavior.
  • Please
    attach your target Word document showing the desired behavior. You can
    use Microsoft Word to create your target Word document. I will
    investigate as to how you are expecting your final document be generated

it is difficult to say what the problem is without the Document(s) and
simplified application. We need your Document(s) and simple project to
reproduce the problem. As soon as you get these pieces of information to
us we’ll start our investigation into your issue.