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. Image for the cookie policy date

Save document is fail


Hello,

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);

Thanks,
Chagit.


1 Reply

PR Poornima R Syncfusion Team May 9, 2011 11:51 AM UTC

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.

Regards,
Poornima



Loader.
Live Chat Icon For mobile
Up arrow icon