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 with stream/FormatType.Txt doesn''t produce anything

Thread ID:

Created:

Updated:

Platform:

Replies:

56045 Feb 8,2007 01:43 PM Mar 21,2007 06:08 AM Windows Forms 3
loading
Tags: DocIO
Henrik Brinch
Asked On February 8, 2007 01:43 PM

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

Melba Winshia [Syncfusion]
Replied On February 11, 2007 11:30 PM

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

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

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

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

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

CONFIRMATION

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.

;