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

Free Support Forum - aspose.com

The crash issue after merging

After using the methoad ExecuteWithRegions(), it can successfully export a word document. However, when the document exported is opened with Microsoft Words 2003, it is likely that my Microsoft Words 2003 crashes. I would like to ask why is this problem happens?

Hi there,

Thanks for using Aspose.Words. Could you please attach your documents here for testing. It will be helpful if you could attach your template document, the output document that crashes and maybe a fragment of the code you are running to produce the output document. We will then be able invesigate this issue further and provide some feedback.

Thanks,

Here is two attachment. One is the document before merged, another one is after merged. The one after merged crashes.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. I cannot reproduce the problem on my side. I use the latest version of Aspose.Words and the following code for testing:

DataTable data = new DataTable("Tenant");

data.Columns.Add("tenant_name");

data.Columns.Add("tenant_chi_name");

data.Columns.Add("tenant_hkid");

data.Columns.Add("address");

data.Columns.Add("connector");

for(int i =0; i<10; i++)

data.Rows.Add(new object[]{"tenant_name", "tenant_chi_name", "tenant_hkid", "address", "connector" });

Document doc = new Document(@"Test001\in.doc");

doc.MailMerge.ExecuteWithRegions(data);

doc.Save(@"Test001\out.doc");

As I can see you are using 6.0.1.0 version of Aspose.Words. Please try using the latest version. You can download it from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards.