Possible bug in use of mail merge

Hi there,


I am attaching document “atest.docx”. If you open the file and look page 1 you will see the text “contents” and the contents table. There is a gap between them of 24pt.

If I open the document using Aspose and save it, then the resultant document correctly maintains this gap.

If, however, I perform a mail merge and then save the document, the gap between the word “contents” and the contents table disappears. Aspose has modified my spacing without me asking it to, so this could be a bug.

Here is the code to produce the issue:

Document wordDoc = new Document(“atest.docx”);

System.Data.DataTable table = new System.Data.DataTable();
table.Columns.Add(“CUSTOMER”);
table.Columns.Add(“PROJECT”);

System.Data.DataRow data = table.NewRow();

data[“CUSTOMER”] = “ABC Ltd”;
data[“PROJECT”] = “Project Flower”;

wordDoc.MailMerge.Execute(data);

wordDoc.Save(“atest_output.docx”, Aspose.Words.SaveFormat.Docx);

Is this an Aspose bug?
Hi Adam,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-9750. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-9750) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.