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
close icon

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

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

stream.Close();

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

3 Replies

MW Melba Winshia Syncfusion Team 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.

Thanks,
Melba


SJ Sivasankari J Syncfusion Team 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.

Regards,
Sivasankari


SJ Sivasankari J Syncfusion Team 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?

http://www.syncfusion.com/Support/DirectTrac/logon.aspx

Thanks,
Sivasankari

Loader.
Live Chat Icon For mobile
Up arrow icon