GemBox.Spreadsheet

ExcelFile.LoadXls Method (Stream, XlsOptions)

Loads the existing XLS file from the input stream (optionally preserving MS Excel records).

public void LoadXls(
   Stream stream,
   XlsOptions xlsOptions
);

Parameters

stream
Input stream.
xlsOptions
XLS options.

Remarks

If the only purpose of loading the file is to read data values and formatting using GemBox.Spreadsheet API, you should use xlsOptions set to XlsOptions.None as this will speed up the loading process.

If you load the existing file to use it as template for a new file, you can choose whether you want to preserve specific MS Excel records not recognized by GemBox.Spreadsheet API.

See Also

ExcelFile Class | GemBox.Spreadsheet Namespace | ExcelFile.LoadXls Overload List