FlexGrid for WPF | ComponentOne
C1.WPF.Grid.Excel Assembly / C1.WPF.Grid Namespace / Extensions Class / SaveAsync Method / SaveAsync(FlexGrid,Stream,String,SaveFileFormat,GridRowColRanges,GridRowColRanges,GridHeadersVisibility,Boolean,Boolean,Boolean,PrinterSettings) Method
The grid this method will be used as an extention towards.
A Stream for the output to be written into.
A String representing the worksheet name.
GrapeCity.Documents.Excel.SaveFileFormatA SaveFileFormat enum value that specifies the format the file should be saved into.
A GridRowColRanges object representing the row settings to be taken into consideration whilst exporting. Could contain specific ranges and/or other flagged options.
A GridRowColRanges object representing the column settings to be taken into consideration whilst exporting. Could contain specific ranges and/or other flagged options.
A GridHeadersVisibility enum value that represents the header visibility options to be taken in consideration whilst exporting.
A Boolean flag denoting whether to render merged ranges in the output.
A Boolean flag denoting whether to render cell values as formatted in the output. If a grid column has a data map and this flag is not true, the rendered output will render the original values.
A Boolean flag denoting whether to render images in the output. If this value is false, their URI's are used instead.
A PrinterSettings object representing all the printer settings to be passed down to the output.

In This Topic
    SaveAsync(FlexGrid,Stream,String,SaveFileFormat,GridRowColRanges,GridRowColRanges,GridHeadersVisibility,Boolean,Boolean,Boolean,PrinterSettings) Method
    In This Topic
    Saves the contents of the grid in a desired format using GcExcel
    Syntax
    'Declaration
     
    Public Overloads Shared Function SaveAsync( _
       ByVal grid As FlexGrid, _
       ByVal stream As Stream, _
       ByVal sheetName As String, _
       ByVal saveFileFormat As GrapeCity.Documents.Excel.SaveFileFormat, _
       Optional ByVal rows As GridRowColRanges, _
       Optional ByVal columns As GridRowColRanges, _
       Optional ByVal headers As GridHeadersVisibility, _
       Optional ByVal merged As Boolean, _
       Optional ByVal formatted As Boolean, _
       Optional ByVal renderImages As Boolean, _
       Optional ByVal printerSettings As PrinterSettings _
    ) As Task
    public static Task SaveAsync( 
       FlexGrid grid,
       Stream stream,
       string sheetName,
       GrapeCity.Documents.Excel.SaveFileFormat saveFileFormat,
       GridRowColRanges rows,
       GridRowColRanges columns,
       GridHeadersVisibility headers,
       bool merged,
       bool formatted,
       bool renderImages,
       PrinterSettings printerSettings
    )

    Parameters

    grid
    The grid this method will be used as an extention towards.
    stream
    A Stream for the output to be written into.
    sheetName
    A String representing the worksheet name.
    saveFileFormat
    GrapeCity.Documents.Excel.SaveFileFormatA SaveFileFormat enum value that specifies the format the file should be saved into.
    rows
    A GridRowColRanges object representing the row settings to be taken into consideration whilst exporting. Could contain specific ranges and/or other flagged options.
    columns
    A GridRowColRanges object representing the column settings to be taken into consideration whilst exporting. Could contain specific ranges and/or other flagged options.
    headers
    A GridHeadersVisibility enum value that represents the header visibility options to be taken in consideration whilst exporting.
    merged
    A Boolean flag denoting whether to render merged ranges in the output.
    formatted
    A Boolean flag denoting whether to render cell values as formatted in the output. If a grid column has a data map and this flag is not true, the rendered output will render the original values.
    renderImages
    A Boolean flag denoting whether to render images in the output. If this value is false, their URI's are used instead.
    printerSettings
    A PrinterSettings object representing all the printer settings to be passed down to the output.
    Remarks
    Could contain specific ranges and/or other flagged options.Could contain specific ranges and/or other flagged options.If a grid column has a data map and this flag is not true, the rendered output will render the original values.If this value is false, their URI's are used instead.
    See Also