We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

WordDocument taking indefinite time to Save

Thread ID:





60145 Apr 28,2007 01:00 AM UTC May 3,2007 05:52 AM UTC WinForms 6
Tags: DocIO
Josh H
Asked On April 28, 2007 01:00 AM UTC

I used a WordDocument object to mail merge about 5000 records. The MailMerge.Execute function completes in a manageable amount of time (about 1 min), but then when I save the document to a new file, it doesn't finish, and brings my computer memory to its knees. Here is the code I am using:

string destPath = Path.GetTempFileName().Replace(".tmp",".doc");
CurrentDocument.Save(destPath); // Hangs here

Sarath Kumar G [Syncfusion]
Replied On April 28, 2007 11:18 PM UTC

Hi Josh,

Thank you for your interest in Syncfusion products.

I am afraid I am unable to reproduce the issue. I created a dataset with 5000 records and used Path.GetTempFileName() to save the file. I was able to generate the word document. Here is the generated word document for your reference.


Here is the sample program for your reference.


If you still face the same problem can you please provide us the sample code using which the error was reproduced also with the word template.

Please let me know if you face any issues.


Josh H
Replied On April 30, 2007 06:58 PM UTC

Attached is a sample project demonstrating the problem. An interesting note is the memory pressure. After creating the WordDocument, and filling the DataTable, memory usage of the application is ~22MB. After merging, it shoots up to ~445MB. While attempting to save, it goes up further, slowing my computer.


Sarath Kumar G [Syncfusion]
Replied On May 1, 2007 03:33 PM UTC

Hi Josh,

Sorry for the delayed response.

Can you please let us the know the Essential Studio version you are working with. Because we had some memory related issues in our previous versions which has been fixed in our latest version. Can you please update to the latest version of Essential Studio if possible. Else Can you please let me know what is the Essential Studio Version you are using. So that I can know the update the status of the issue in detail.

Sorry for the inconvenience caused.


Josh H
Replied On May 1, 2007 07:41 PM UTC

Using version

Josh H
Replied On May 2, 2007 11:15 PM UTC

Am I using the latest version? Do you have any other suggestions? Have you looked at the sample?


Bhuvaneswari P [Syncfusion]
Replied On May 3, 2007 05:52 AM UTC

Hi Josh,

Thank You for your all updates and your sample.

I was able to reproduce the issue that you have mentioned here. This issue has been fixed in our new version 5.1 whose RC was released last week. Could you please open a Direct-Trac incident with regard to this issue, so that we can provide you the link to download the v5.1 version RC. Please open the new incident with the below subject.

Subject: 60145 - WordDocument taking indefinite time to Save

Herewith I have attached the Sample document that was created using your sample with our new version v5.1.

Please let me know if you have any other queries.

Thank you for your interest in Syncfusion products.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon