Search Results for

    Show / Hide Table of Contents

    ExcelFile.NewFile Method

    Overloads

    • ExcelFile.NewFile
    • ExcelFile.NewFile(Int32)
    • ExcelFile.NewFile(Int32, TExcelFileFormat)

    ExcelFile.NewFile

    Creates a new empty file, with 3 empty sheets.

    Remarks

    The file created will have empty properties, (author, description, etc). If you want to create a more personalized file when you call NewFile (for example with a given Author, or the sheets names on your language), there are 2 options:

    1. Don't use NewFile, but open an existing file you can modify.
    2. Or, you can replace the file "EmptyWorkbook.xls" (on xlsadapter folder) with your own and recompile.

    Syntax

    Namespace: FlexCel.Core

    public void NewFile()

    See also

    • ExcelFile

    ExcelFile.NewFile(Int32)

    Creates a new empty file, with the specified number of sheets.

    Remarks

    The file created will have empty properties, (author, description, etc). If you want to create a more personalized file when you call NewFile (for example with a given Author, or the sheets names on your language), there are 2 options:

    1. Don't use NewFile, but open an existing file you can modify.
    2. Or, you can replace the files "EmptyWorkbook.xls", "EmptyWorkbook2007.xls" and "EmptyWorkbook2010.xls" (on xlsadapter folder) with your own and recompile.

    Syntax

    Namespace: FlexCel.Core

    public void NewFile(Int32 aSheetCount)

    Parameters

    <-> Parameter Type Description
    aSheetCount Int32 Number of sheets for the new file.

    See also

    • ExcelFile

    ExcelFile.NewFile(Int32, TExcelFileFormat)

    Creates a new empty file, with the specified number of sheets.

    Remarks

    The file created will have empty properties, (author, description, etc). If you want to create a more personalized file when you call NewFile (for example with a given Author, or the sheets names on your language), there are 2 options:

    1. Don't use NewFile, but open an existing file you can modify.
    2. Or, you can replace the files "EmptyWorkbook.xls", "EmptyWorkbook2007.xls" and "EmptyWorkbook2010.xls" (on xlsadapter folder) with your own and recompile.

    Syntax

    Namespace: FlexCel.Core

    public abstract void NewFile(Int32 aSheetCount, TExcelFileFormat fileFormat)

    Parameters

    <-> Parameter Type Description
    aSheetCount Int32 Number of sheets for the new file.
    fileFormat TExcelFileFormat Different Excel versions save different empty files. By default, FlexCel will create a new file that looks like a file created by Excel 2003, but you can change the version of the new file created with this parameter.

    See also

    • ExcelFile
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com