Skip to content

Commit 0b17a88

Browse files
FLUT-5534-[feature][flutter]: Added codes to save the file in pdf and excel.
1 parent 3d912b4 commit 0b17a88

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Flutter/datagrid/export-to-excel.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ Widget build(BuildContext context) {
142142
{% endhighlight %}
143143
{% endtabs %}
144144

145+
## Save the PDF document as file
146+
147+
To save the file in excel document, platform specific file generation code should be added. You can include the code snippets to create documents in [mobile](https://help.syncfusion.com/flutter/pdf/getting-started#save-and-open-a-pdf-document-in-mobile) and [web](https://help.syncfusion.com/flutter/pdf/getting-started#save-and-download-a-pdf-document-in-web) platforms.
148+
145149
## Export DataGrid to Excel workbook
146150

147151
You can export the data to [Excel Workbook](https://pub.dev/documentation/syncfusion_flutter_xlsio/latest/xlsio/Workbook-class.html) by using the `exportToExcelWorkbook` method from the `key.currentState` of the DataGrid.

Flutter/datagrid/export-to-pdf.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ Widget build(BuildContext context) {
128128
{% endhighlight %}
129129
{% endtabs %}
130130

131+
## Save the PDF document as file
132+
133+
To save the file in pdf document, platform specific file generation code should be added. You can include the code snippets to create documents in [mobile](https://help.syncfusion.com/flutter/pdf/getting-started#save-and-open-a-pdf-document-in-mobile) and [web](https://help.syncfusion.com/flutter/pdf/getting-started#save-and-download-a-pdf-document-in-web) platforms.
134+
131135
## Export DataGrid to PDF document
132136

133137
You can export the data to [PdfDocument](https://pub.dev/documentation/syncfusion_flutter_pdf/latest/pdf/PdfDocument-class.html) by using the `exportToPdfDocument` method from `key.currentState` of the DataGrid.

0 commit comments

Comments
 (0)