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.

How to Save As Stream

Thread ID:

Created:

Updated:

Platform:

Replies:

81133 May 14,2009 01:46 AM May 14,2009 05:41 AM ASP.NET Web Forms (Classic) 1
loading
Tags: XlsIO
Karthikeyan U
Asked On May 14, 2009 01:46 AM

Hi,

I want to save the created workbook as Stream (System.IO), but i dont know how to do it.

workbook.SaveAs(objStream, ",")

In the above function Stream is not the output parameter. So how can i get the stream?

Regards,
Karthikeyan


Geetha M [Syncfusion]
Replied On May 14, 2009 05:41 AM

Hi Karthikeyan,

Thank you for your interest in Syncfusion products.

You can save the file as stream as mentioned in the code snippet given below:

Stream stream = new FileStream(@"sample.xls", FileMode.OpenOrCreate);
workbook.SaveAs(stream);

Please try this and let me know if you have any questions.

Regards,
Geetha

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.

;