Class
LegacySpreadsheetImporter
OfficeIMO.Excel.Legacy
Detects and imports selected legacy spreadsheets without executing macros or resolving external links.
Inheritance
- object
- LegacySpreadsheetImporter
Methods
Detect 3 overloads
public static LegacySpreadsheetDetection Detect(string path, LegacySpreadsheetImportOptions? options = null, CancellationToken cancellationToken = default) #Detects a legacy spreadsheet file.
Parameters
- path string
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
LegacySpreadsheetDetectionpublic static LegacySpreadsheetDetection Detect(Stream stream, LegacySpreadsheetImportOptions? options = null, CancellationToken cancellationToken = default) #Detects a legacy spreadsheet stream.
Parameters
- stream System.IO.Stream
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
LegacySpreadsheetDetectionpublic static LegacySpreadsheetDetection Detect(byte[] data, LegacySpreadsheetImportOptions? options = null, CancellationToken cancellationToken = default) #Detects legacy spreadsheet bytes.
Parameters
- data byte[]
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
LegacySpreadsheetDetectionImport 3 overloads
public static LegacySpreadsheetImportResult Import(string path, LegacySpreadsheetImportOptions? options = null, CancellationToken cancellationToken = default) #Imports a legacy spreadsheet file into a normal editable ExcelDocument.
Parameters
- path string
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static LegacySpreadsheetImportResult Import(Stream stream, LegacySpreadsheetImportOptions? options = null, CancellationToken cancellationToken = default) #Imports a legacy spreadsheet stream into a normal editable ExcelDocument.
Parameters
- stream System.IO.Stream
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
public static LegacySpreadsheetImportResult Import(byte[] data, LegacySpreadsheetImportOptions? options = null, CancellationToken cancellationToken = default) #Imports legacy spreadsheet bytes into a normal editable ExcelDocument.
Parameters
- data byte[]
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions? = null
- cancellationToken System.Threading.CancellationToken = default