API Reference
Class
LegacySpreadsheetImporter
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 = null) #Returns:
LegacySpreadsheetDetectionDetects a legacy spreadsheet file.
Parameters
- path System.String
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static LegacySpreadsheetDetection Detect(Stream stream, LegacySpreadsheetImportOptions options = null, CancellationToken cancellationToken = null) #Returns:
LegacySpreadsheetDetectionDetects a legacy spreadsheet stream.
Parameters
- stream System.IO.Stream
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static LegacySpreadsheetDetection Detect(Byte[] data, LegacySpreadsheetImportOptions options = null, CancellationToken cancellationToken = null) #Returns:
LegacySpreadsheetDetectionDetects legacy spreadsheet bytes.
Parameters
- data System.Byte[]
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions = null
- cancellationToken System.Threading.CancellationToken = null
Import 3 overloads
public static LegacySpreadsheetImportResult Import(String path, LegacySpreadsheetImportOptions options = null, CancellationToken cancellationToken = null) #Returns:
LegacySpreadsheetImportResultImports a legacy spreadsheet file into a normal editable ExcelDocument.
Parameters
- path System.String
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static LegacySpreadsheetImportResult Import(Stream stream, LegacySpreadsheetImportOptions options = null, CancellationToken cancellationToken = null) #Returns:
LegacySpreadsheetImportResultImports a legacy spreadsheet stream into a normal editable ExcelDocument.
Parameters
- stream System.IO.Stream
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions = null
- cancellationToken System.Threading.CancellationToken = null
public static LegacySpreadsheetImportResult Import(Byte[] data, LegacySpreadsheetImportOptions options = null, CancellationToken cancellationToken = null) #Returns:
LegacySpreadsheetImportResultImports legacy spreadsheet bytes into a normal editable ExcelDocument.
Parameters
- data System.Byte[]
- options OfficeIMO.Excel.Legacy.LegacySpreadsheetImportOptions = null
- cancellationToken System.Threading.CancellationToken = null