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

Save with stream/FormatType.Txt doesn''t produce anything

Thread ID:





56045 Feb 8,2007 06:43 PM UTC Mar 21,2007 10:08 AM UTC WinForms 3
Tags: DocIO
Henrik Brinch
Asked On February 8, 2007 06:43 PM UTC

Dear Sirs,

MemoryStream stream = new MemoryStream();

// Word document generated
document.Save(stream, FormatType.Txt);

stream.Seek(0, SeekOrigin.Begin);

byte[] buffer = new byte[stream.Length];
stream.Read(buffer, 0, (int)stream.Length);


string docText = Encoding.Default.GetString(buffer);

This produces an empty string (and the Length of the stream is zero). Changing the code to save to a file instead of a stream works perfectly!

Best Regards,
- Henrik Brinch, TriGemini

Melba Winshia [Syncfusion]
Replied On February 12, 2007 04:30 AM UTC

Hi TriGemini,

I was able to reproduce the problem. I have forwarded this issue to the development team. I will provide a time frame for fixing this issue with in two days. Sorry for the inconvenience.

Please let me know if you have any other questions.


Sivasankari J [Syncfusion]
Replied On February 14, 2007 09:51 AM UTC

Hi TriGemini,

Thank you for your patience.

The fix for this issue[defect #3651] will be available on March 21.

Kindly let me know if you have any other queries.


Sivasankari J [Syncfusion]
Replied On March 21, 2007 10:08 AM UTC

Hi TriGemini,

We have fixed this issue.Could you please open an incident in the direct trac with the forum id as the subject line, so that we can send you the necessary information?




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

or the page will be automatically redirected to 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