Mail merge field in textbox not working when converted to PDF

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.

Hi Per,


Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 14.11.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-11204. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

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.