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

Reading via stream

Thread ID:





103562 May 11,2012 08:03 AM UTC May 14,2012 12:54 PM UTC WinForms 1
Tags: XlsIO
Asked On May 11, 2012 08:03 AM UTC

Is it better to read via stream or just give the path, and why?
IWorkbook wb = XlObj.Excel.Workbooks.Open(path);//like C:/test/XYZ.xlsx
IWorkbook wb = XlObj.Excel.Workbooks.Open(stream);//like Stream stream =  FileStream(path, //FileMode.Open);

Johnson Monohar M [Syncfusion]
Replied On May 14, 2012 12:54 PM UTC

Hi Amber,

Thank you for using Syncfusion products.

Either a stream or a filename can be used to open a workbook, as both does the same functionality which returns a workbook. Internally the file name creates a stream and processes its data. Whereas, if a stream is given as input, it processes from that stream itself. 

The stream option is given in addition for user's convenience to use the stream wherever necessary. If a user is not able to manage the code with streams, then can use a file name to open.

Please let us know if you need further clarification.



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

This page will automatically be redirected to the 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