Search Results for

    Show / Hide Table of Contents

    Class ExcelFileFormat

    Enum that represents the Excel file format which will be used for new workbook creation.

    XLS or XLSX (preferred).

    Inheritance
    System.Object
    ExcelFileFormat
    Namespace: IronXL
    Assembly: IronXL.dll
    Syntax
    public sealed class ExcelFileFormat : Enum

    ExcelFileFormat selects the workbook format IronXL writes when a file is created, saved, or converted, passed to WorkBook.Create, WorkBook.Import, and WorkBook.ToStream. XLSX is the modern Open XML format and the usual choice for current spreadsheets, while XLS is the legacy binary format for older Excel versions and tools that still require it. The convert spreadsheet file types how-to walks through moving between formats.

    WorkBook workBook = WorkBook.Create(ExcelFileFormat.XLSX);

    Fields

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32

    XLS

    Option stands for the old XLS Excel format (1997-2003)

    Declaration
    public const ExcelFileFormat XLS
    Field Value
    Type Description
    ExcelFileFormat

    XLSX

    Option stands for the new XLSX Excel format (2007+)

    Declaration
    public const ExcelFileFormat XLSX
    Field Value
    Type Description
    ExcelFileFormat
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget