[]
Saves the contents of the grid in a desired format using GcExcel
public static Task SaveAsync(this FlexGrid grid, string fileName, string sheetName, SaveFileFormat saveFileFormat, GridRowColRanges rows = null, GridRowColRanges columns = null, GridHeadersVisibility headers = GridHeadersVisibility.None, bool merged = false, bool formatted = false, bool renderImages = false, PrinterSettings printerSettings = null)
Type | Name | Description |
---|---|---|
FlexGrid | grid | The grid this method will be used as an extension towards. |
string | fileName | A String representing the name of the file to save. |
string | sheetName | A String representing the worksheet name. |
SaveFileFormat | saveFileFormat | GrapeCity.Documents.Excel.SaveFileFormatA SaveFileFormat enum value that specifies the format the file should be saved into. |
GridRowColRanges | rows | A GridRowColRanges object representing the row settings to be taken into consideration whilst exporting.
|
GridRowColRanges | columns | A GridRowColRanges object representing the column settings to be taken into consideration whilst exporting.
|
GridHeadersVisibility | headers | A GridHeadersVisibility enum value that represents the header visibility options to be taken in consideration whilst exporting. |
bool | merged | A Boolean flag denoting whether to render merged ranges in the output. |
bool | formatted | A Boolean flag denoting whether to render cell values as formatted in the output.
|
bool | renderImages | A Boolean flag denoting whether to render images in the output.
|
PrinterSettings | printerSettings | A PrinterSettings object representing all the printer settings to be passed down to the output. |
Type | Description |
---|---|
Task |
Saves the contents of the grid in a desired format using GcExcel
public static Task SaveAsync(this FlexGrid grid, Stream stream, string sheetName, SaveFileFormat saveFileFormat, GridRowColRanges rows = null, GridRowColRanges columns = null, GridHeadersVisibility headers = GridHeadersVisibility.None, bool merged = false, bool formatted = false, bool renderImages = false, PrinterSettings printerSettings = null)
Type | Name | Description |
---|---|---|
FlexGrid | grid | The grid this method will be used as an extension towards. |
Stream | stream | A Stream for the output to be written into. |
string | sheetName | A String representing the worksheet name. |
SaveFileFormat | saveFileFormat | GrapeCity.Documents.Excel.SaveFileFormatA SaveFileFormat enum value that specifies the format the file should be saved into. |
GridRowColRanges | rows | A GridRowColRanges object representing the row settings to be taken into consideration whilst exporting.
|
GridRowColRanges | columns | A GridRowColRanges object representing the column settings to be taken into consideration whilst exporting.
|
GridHeadersVisibility | headers | A GridHeadersVisibility enum value that represents the header visibility options to be taken in consideration whilst exporting. |
bool | merged | A Boolean flag denoting whether to render merged ranges in the output. |
bool | formatted | A Boolean flag denoting whether to render cell values as formatted in the output.
|
bool | renderImages | A Boolean flag denoting whether to render images in the output.
|
PrinterSettings | printerSettings | A PrinterSettings object representing all the printer settings to be passed down to the output. |
Type | Description |
---|---|
Task |