Base class for format providers that import and export workbooks using binary formats such as XLSX and XLS.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.FormatProviders
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public abstract class BinaryWorkbookFormatProviderBase : WorkbookFormatProviderBase, IBinaryWorkbookFormatProvider, IWorkbookFormatProvider
Inheritance: objectWorkbookFormatProviderBaseBinaryWorkbookFormatProviderBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the BinaryWorkbookFormatProviderBase class.
protected BinaryWorkbookFormatProviderBase()
Methods
Exports the specified workbook to a byte array with optional timeout to prevent long-running operations.
public byte[] Export(Workbook workbook, TimeSpan? timeout)
The workbook.
timeoutTimeSpan?The timeout after which the operation will be cancelled.
Returns:byte[]
The result byte array.
Exceptions:The exception that is thrown when timeout is less than -1 or greater than Int32.MaxValue. Note that this upper bound is more restrictive than TimeSpan.MaxValue.
Implements:
Imports a workbook from the specified byte array with optional timeout to prevent long-running operations.
public Workbook Import(byte[] input, TimeSpan? timeout)
The input.
timeoutTimeSpan?The timeout after which the operation will be cancelled.
Returns:The workbook.
Exceptions:The exception that is thrown when timeout is less than -1 or greater than Int32.MaxValue. Note that this upper bound is more restrictive than TimeSpan.MaxValue.
Implements: