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.
Up arrow icon