Interface IExcelWorkerProvider
Defines a contract for creating and opening Excel worker instances from streams.
public interface IExcelWorkerProvider
- Extension Methods
Methods
CreateNew(Stream, bool)
Creates a new Excel workbook and returns an IExcelWorker instance to interact with it.
IExcelWorker CreateNew(Stream stream, bool readOnly = false)
Parameters
stream
StreamThe stream to write the new workbook to.
readOnly
boolIf
true
, the workbook is opened in read-only mode; otherwise, it is writable.
Returns
- IExcelWorker
An IExcelWorker instance for the new workbook.
OpenExist(Stream)
Opens an existing Excel workbook from a stream and returns an IExcelWorker instance to interact with it.
IExcelWorker OpenExist(Stream stream)
Parameters
stream
StreamThe stream containing the existing workbook data.
Returns
- IExcelWorker
An IExcelWorker instance for the opened workbook.