Loads an Excel workbook from a given stream into a LEADWorkbook instance.
public static LEADWorkbook LoadFromStream(
Stream stream,
LoadWorkbookOptions options
)
stream
A Stream from which the Excel workbook will be loaded. The stream must be readable and positioned at the beginning of the workbook data.
options
An instance of LoadWorkbookOptions providing additional settings for loading the workbook.
An instance of the LEADWorkbook class loaded with the content from the provided stream. If the stream is null, unreadable, or contains data that cannot be interpreted as a valid Excel workbook, an appropriate exception is thrown.