Hi
I have created a Word document (docx) and inserted at textbox. Inside the textbox I have a mergefield. If I execute a merge and saves the result as docx and opens the document in Word my merge data is shown in the textbox. But if I save the document as a PDF the rendered PDF shows the mergefield and not the data as I would expect.
This is the code used:
var doc = new Document(“template.docx”);
var dataSource = new DataTable();
dataSource.Columns.Add(new DataColumn(“MyMergeField”));
dataSource.Rows.Add(“MyMergeData”);
doc.MailMerge.Execute(dataSource);
doc.Save(“output.docx”);
doc.Save(“output.pdf”);
The input and output documents are attached in the zip.
The issues you have found earlier (filed as WORDSNET-11204) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.