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.
Unfortunately, activation email could not send to your email. Please try again.

Save document is fail

Thread ID:





99217 May 8,2011 05:52 AM May 9,2011 07:51 AM WPF 1
Tags: DocIO
chagit gudesblat
Asked On May 8, 2011 05:52 AM


I have program that uses in WordDocument.
When saving a document his size 1.5 MB
save fails and the error is: OutOfMemoryException

The code is the following:

MemoryStream stream = new MemoryStream(m_DocumentData.FileByte);
m_NewDocument = new WordDocument(stream,m_DocumentData.DocType);

MemoryStream memStream = new MemoryStream();
m_NewDocument.Save(memStream, FormatType.Doc);


Poornima R [Syncfusion]
Replied On May 9, 2011 07:51 AM

Hi Chagit,

Thank you for your interest in Syncfusion Products.

Essential DocIO keeps the document and its elements in the main memory. The document needs to be held wholly in memory. Therefore, memory and CPU usage are dependent on document size and document complexity. As the size of the document keep on increasing at one stage, it will definitely end up with the OutOfMemory Exception. We have logged this as a feature request to improve Essential DocIO to work with very large documents. Could you please report this issue through Direct Trac Developer Support System https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents ), because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well? Please ignore if you have already reported this issue.

Also please provide us with the input document that causes “Out of memory exception” while reporting the issue through direct trac.

Please let us know if you have any questions.



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.

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.