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.
Syncfusion Feedback

Reading via stream

Thread ID:

Created:

Updated:

Platform:

Replies:

103562 May 11,2012 08:03 AM UTC May 14,2012 12:54 PM UTC Windows Forms 1
loading
Tags: XlsIO
Amber
Asked On May 11, 2012 08:03 AM UTC

Hi, 
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
OR
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.

Regards,
Johnson

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.

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

;