Search Results for

    Show / Hide Table of Contents

    ExcelFile.Save Method

    Overloads

    • ExcelFile.Save(String)
    • ExcelFile.Save(Stream)
    • ExcelFile.Save(String, TFileFormats)
    • ExcelFile.Save(Stream, TFileFormats)
    • ExcelFile.Save(String, TFileFormats, Char)
    • ExcelFile.Save(Stream, TFileFormats, Char)
    • ExcelFile.Save(String, TFileFormats, Char, Encoding)
    • ExcelFile.Save(Stream, TFileFormats, Char, Encoding)

    ExcelFile.Save(String)

    Saves the file to disk, on native format.

    Syntax

    Namespace: FlexCel.Core

    public void Save(String fileName)

    Parameters

    <-> Parameter Type Description
    fileName String File to save. If AllowOverwritingFiles is false, then fileName MUST NOT exist.

    See also

    • ExcelFile

    ExcelFile.Save(Stream)

    Saves the file to a stream, on native format.

    Syntax

    Namespace: FlexCel.Core

    public void Save(Stream aStream)

    Parameters

    <-> Parameter Type Description
    aStream Stream Stream where to save the file. Must be a seekable stream.

    See also

    • ExcelFile

    ExcelFile.Save(String, TFileFormats)

    Saves the file to a disk.

    Syntax

    Namespace: FlexCel.Core

    public void Save(String fileName, TFileFormats fileFormat)

    Parameters

    <-> Parameter Type Description
    fileName String File to save. If AllowOverwritingFiles is false, then fileName MUST NOT exist.
    fileFormat TFileFormats File format. If file format is text, a tab will be used as delimiter. Automatic will try to guess it from the filename, if present.

    See also

    • ExcelFile

    ExcelFile.Save(Stream, TFileFormats)

    Saves the file to a stream.

    Syntax

    Namespace: FlexCel.Core

    public void Save(Stream aStream, TFileFormats fileFormat)

    Parameters

    <-> Parameter Type Description
    aStream Stream Stream where to save the file. Must be a seekable stream.
    fileFormat TFileFormats File format. If file format is text, a tab will be used as delimiter. Automatic will try to guess it from the filename, if present.

    See also

    • ExcelFile

    ExcelFile.Save(String, TFileFormats, Char)

    Saves the file to a disk.

    Syntax

    Namespace: FlexCel.Core

    public void Save(String fileName, TFileFormats fileFormat, Char delimiter)

    Parameters

    <-> Parameter Type Description
    fileName String File to save. If AllowOverwritingFiles is false, then fileName MUST NOT exist.
    fileFormat TFileFormats File format. Automatic will try to guess it from the filename, if present.
    delimiter Char Delimiter to use if FileFormat is TFileFormats.Text

    See also

    • ExcelFile

    ExcelFile.Save(Stream, TFileFormats, Char)

    Saves the file to a stream.

    Syntax

    Namespace: FlexCel.Core

    public void Save(Stream aStream, TFileFormats fileFormat, Char delimiter)

    Parameters

    <-> Parameter Type Description
    aStream Stream Stream where to save the file. Must be a seekable stream.
    fileFormat TFileFormats File format. Automatic will try to guess it from the filename, if present.
    delimiter Char Delimiter to use if FileFormat is TFileFormats.Text

    See also

    • ExcelFile

    ExcelFile.Save(String, TFileFormats, Char, Encoding)

    Saves the file to a disk.

    Syntax

    Namespace: FlexCel.Core

    public abstract void Save(String fileName, TFileFormats fileFormat, Char delimiter, Encoding fileEncoding)

    Parameters

    <-> Parameter Type Description
    fileName String File to save. If AllowOverwritingFiles is false, then fileName MUST NOT exist.
    fileFormat TFileFormats File format. Automatic will try to guess it from the filename, if present.
    delimiter Char Delimiter to use if FileFormat is TFileFormats.Text
    fileEncoding Encoding Encoding for the generated file, when writing a Text-delimited file (csv or txt).
    This parameter has no effect on xls/x files. If omitted, new UTF8Encoding(false) will be used. Note that to create a file with BOM (byte order marker) you need to specify an encoding here, the same as you do with a StreamWriter.

    See also

    • ExcelFile

    ExcelFile.Save(Stream, TFileFormats, Char, Encoding)

    Saves the file to a stream.

    Syntax

    Namespace: FlexCel.Core

    public abstract void Save(Stream aStream, TFileFormats fileFormat, Char delimiter, Encoding fileEncoding)

    Parameters

    <-> Parameter Type Description
    aStream Stream Stream where to save the file. Must be a seekable stream.
    fileFormat TFileFormats File format. Automatic will try to guess it from the filename, if present.
    delimiter Char Delimiter to use if FileFormat is TFileFormats.Text
    fileEncoding Encoding Encoding for the generated file, when writing a Text-delimited file (csv or txt).
    This parameter has no effect on xls files. If omitted, new UTF8Encoding(false) will be used. Note that to create a file with BOM (byte order marker) you need to specify an encoding here, the same as you do with a StreamWriter.

    See also

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