menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Workbook - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Workbook

    Process files using the partial class.

    Inheritance
    System.Object
    Workbook
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.EJ2.Spreadsheet
    Assembly: Syncfusion.EJ2.Spreadsheet.dll
    Syntax
    public class Workbook
    Remarks

    This class can save Spreadsheet as Stream, base64String and downloadable File in Client.

    Constructors

    Workbook()

    Declaration
    public Workbook()

    Methods

    Open(OpenRequest)

    Open the sheet using import request.

    Declaration
    public static string Open(OpenRequest openRequest)
    Parameters
    Type Name Description
    OpenRequest openRequest

    The import request.

    Returns
    Type Description
    System.String

    The sheet settings.

    Open(OpenRequest, Int32)

    This method is used to open Excel documents in the Spreadsheet through chunk processing of the response, which contains the document details.

    Declaration
    public static string Open(OpenRequest openRequest, int expirationTime)
    Parameters
    Type Name Description
    OpenRequest openRequest

    Specifies the details provided by the client for opening the Excel document in the Spreadsheet.

    System.Int32 expirationTime

    Specifies the expiration time, in minutes, of the data stored in the MemoryCache.

    Returns
    Type
    System.String

    Save(SaveSettings)

    Save the spreadsheet into a file.

    Declaration
    public static void Save(SaveSettings saveSettings)
    Parameters
    Type Name Description
    SaveSettings saveSettings

    SaveSettings object that contains the settings.

    Save<T>(SaveSettings)

    Save the Spreadsheet in defined type.

    Declaration
    public static T Save<T>(SaveSettings saveSettings)
    Parameters
    Type Name Description
    SaveSettings saveSettings

    SaveSettings object that contains the settings.

    Returns
    Type
    T
    Type Parameters
    Name Description
    T

    Return output based on defined type.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved