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

How to Save As Stream

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


1 Reply

GM Geetha M Syncfusion Team 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);
workbook.SaveAs(stream);

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

Regards,
Geetha

Loader.
Live Chat Icon For mobile
Up arrow icon