skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class BinaryWorkbookFormatProviderBase

Base class for format providers that import and export workbooks using binary formats such as XLSX and XLS.

Inheritance
System.Object
WorkbookFormatProviderBase
BinaryWorkbookFormatProviderBase
JsonFormatProvider
XlsmFormatProvider
XlsxFormatProvider
PdfFormatProvider
XlsFormatProvider
Inherited Members
WorkbookFormatProviderBase.Import(Stream)
WorkbookFormatProviderBase.Import(Stream, Nullable<TimeSpan>)
WorkbookFormatProviderBase.ImportOverride(Stream)
WorkbookFormatProviderBase.ImportOverride(Stream, CancellationToken)
WorkbookFormatProviderBase.Export(Workbook, Stream)
WorkbookFormatProviderBase.Export(Workbook, Stream, Nullable<TimeSpan>)
WorkbookFormatProviderBase.ExportOverride(Workbook, Stream)
WorkbookFormatProviderBase.ExportOverride(Workbook, Stream, CancellationToken)
WorkbookFormatProviderBase.Name
WorkbookFormatProviderBase.FilesDescription
WorkbookFormatProviderBase.SupportedExtensions
WorkbookFormatProviderBase.CanImport
WorkbookFormatProviderBase.CanExport
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Spreadsheet.FormatProviders
Assembly: Telerik.Windows.Documents.Spreadsheet.dll

Syntax

public abstract class BinaryWorkbookFormatProviderBase : WorkbookFormatProviderBase, IBinaryWorkbookFormatProvider, IWorkbookFormatProvider

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.

Declaration
[Obsolete("This method is obsolete. Please use Export(Workbook workbook, TimeSpan? timeout) instead.")]
public byte[] Export(Workbook workbook)
Parameters
Workbook workbook

The workbook.

Returns
System.Byte[]

The result byte array.

Implements
IBinaryWorkbookFormatProvider.Export(Workbook)

Export(Workbook, Nullable<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 workbook

The workbook.

System.Nullable<System.TimeSpan> timeout

The timeout after which the operation will be cancelled.

Returns
System.Byte[]

The result byte array.

Exceptions
System.ArgumentOutOfRangeException

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.

Declaration
[Obsolete("This method is obsolete. Please use Import(byte[] input, TimeSpan? timeout) instead.")]
public Workbook Import(byte[] input)
Parameters
System.Byte[] input

The input.

Returns
Workbook

The workbook.

Implements
IBinaryWorkbookFormatProvider.Import(Byte[])

Import(Byte[], Nullable<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
System.Byte[] input

The input.

System.Nullable<System.TimeSpan> timeout

The timeout after which the operation will be cancelled.

Returns
Workbook

The workbook.

Exceptions
System.ArgumentOutOfRangeException

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.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.