XlsFormatProvider
Imports and exports workbooks in XLS (Excel 97-2003 BIFF8) format by converting through XLSX for compatibility.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.FormatProviders.Xls
Assembly:Telerik.Windows.Documents.Spreadsheet.FormatProviders.Xls.dll
Syntax:
public class XlsFormatProvider : BinaryWorkbookFormatProviderBase, IBinaryWorkbookFormatProvider, IWorkbookFormatProvider
Inheritance: objectWorkbookFormatProviderBaseBinaryWorkbookFormatProviderBaseXlsFormatProvider
Implements:
Inherited Members
Constructors
Initializes a new instance of the XlsFormatProvider class.
public XlsFormatProvider()
Methods
Writes the workbook to the stream in XLS format by exporting to XLSX first, then converting to BIFF8 for compatibility.
protected override void ExportOverride(Workbook workbook, Stream output, CancellationToken cancellationToken)
The workbook.
outputStreamThe output.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Overrides:
Reads XLS data from the stream by converting BIFF8 format to XLSX internally, then importing as XLSX for compatibility.
protected override Workbook ImportOverride(Stream input, CancellationToken cancellationToken)
The input.
cancellationTokenCancellationTokenThe cancellation token used to cancel the operation.
Returns:The imported workbook.
Overrides:
Properties
Indicates that this provider supports exporting workbooks to XLS format.
public override bool CanExport { get; }
The value indicating whether can export.
Overrides:
Indicates that this provider supports importing XLS files into workbooks.
public override bool CanImport { get; }
The value indicating whether can import.
Overrides:
Describes the file type as "Excel 97-2003 Workbook" for display in UI contexts.
public override string FilesDescription { get; }
The files description.
Overrides:
Identifies this format provider as "XlsFormatProvider" for registration and lookup.
public override string Name { get; }
The name of the provider.
Overrides:
Specifies that this provider handles files with .xls extension.
public override IEnumerable<string> SupportedExtensions { get; }
The supported extensions.
Overrides: