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 As FlexGrid, _
ByVal As Stream, _
ByVal As String, _
ByVal As GrapeCity.Documents.Excel.SaveFileFormat, _
Optional ByVal As GridRowColRanges, _
Optional ByVal columns As GridRowColRanges, _
Optional ByVal As GridHeadersVisibility, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As Boolean, _
Optional ByVal As PrinterSettings _
) As Task
public static Task SaveAsync(
FlexGrid ,
Stream ,
string ,
GrapeCity.Documents.Excel.SaveFileFormat ,
GridRowColRanges ,
GridRowColRanges columns,
GridHeadersVisibility ,
bool ,
bool ,
bool ,
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.
See Also