IExcelWorkerProvider

Ecng.Excel

Defines a contract for creating and opening Excel worker instances from streams.

メソッド

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.

戻り値: 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.

戻り値: An IExcelWorker instance for the opened workbook.