ClassBinaryWorkbookFormatProviderBase
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
BinaryWorkbookFormatProviderBase()
Initializes a new instance of the BinaryWorkbookFormatProviderBase class.
Declaration
protected BinaryWorkbookFormatProviderBase()
Methods
Export(Workbook)
Exports the specified workbook to a byte array without timeout support.
Export(Workbook, TimeSpan?)
Exports the specified workbook to a byte array with optional timeout to prevent long-running operations.
Declaration
public byte[] Export(Workbook workbook, TimeSpan? timeout)
Parameters
workbook
The workbook.
timeout
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.
Import(byte[])
Imports a workbook from the specified byte array without timeout support.
Import(byte[], TimeSpan?)
Imports a workbook from the specified byte array with optional timeout to prevent long-running operations.
Declaration
public Workbook Import(byte[] input, TimeSpan? timeout)
Parameters
input
byte[]
The input.
timeout
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.