IExcelWorkerProvider
Ecng.Excel
Defines a contract for creating and opening Excel worker instances from streams.
Métodos
CreateNew
public IExcelWorker CreateNew(Stream stream, bool readOnly)
result = iExcelWorkerProvider.CreateNew(stream, readOnly)
Creates a new Excel workbook and returns an IExcelWorker instance to interact with it.
- stream
- The stream to write the new workbook to.
- readOnly
- If true, the workbook is opened in read-only mode; otherwise, it is writable.
Devuelve: An IExcelWorker instance for the new workbook.
OpenExist
public IExcelWorker OpenExist(Stream stream)
result = iExcelWorkerProvider.OpenExist(stream)
Opens an existing Excel workbook from a stream and returns an IExcelWorker instance to interact with it.
- stream
- The stream containing the existing workbook data.
Devuelve: An IExcelWorker instance for the opened workbook.