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

How to Save As Stream

Thread ID:





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


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?


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

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

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



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