exportReportToExcel
| Method | exportReportToExcel(extype) | Export report to Excel |
|---|---|---|
| Parameter | extype: string | Specified format when exporting, string
|
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , export Excel by page and sheet Example 2: Export by page and shhet in general reports Example 3: Export report0 report block by page and sheet in dashboard _g().getWidgetByName('report0').exportReportToExcel('sheet'); | |
Application example | Customize a button "Export Excel", click the button to export Excel: Click to download the template:
| |
| Mobile | Only support "Pagination Preview" and "Data Entry Preview" of the general report | |
exportReportToImage
| Method | exportReportToImage(extype) | Export report as image Note: Dashboards are not supported |
|---|---|---|
| Parameter | extype: string | Specified format when exporting, string
|
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , export the picture in png format Example 2: Exporting images in png format in a general report _g().exportReportToImage('png'); | |
Application example | Customize a button "Export Image", click the button to export the image: Click to download the template:
| |
| Mobile | Only support "Pagination Preview" and "Data Entry Preview" of the general report | |
exportReportToPDF
| Method | exportReportToPDF() | Export report as PDF Note: Dashboards are not supported |
|---|---|---|
| Parameter | - | - |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , the report is exported to PDF Example 2: Export PDF from general report _g().exportReportToPDF(); | |
Application example | Customize a button "Export PDF", click the button to export the PDF: Click to download the template:
| |
| Mobile | Only support "Pagination Preview" and "Data Entry Preview" of the general report | |
exportReportToWord
| Method | exportReportToWord() | Export report as Word Note: Dashboards are not supported |
|---|---|---|
| Parameter | - | - |
| Return value | void | |
| Example | Example 1: If the obtained report block object is defined as report , the report is exported to Word Example 2: Export Word from general report _g().exportReportToPDF(); | |
Application example | Customize a button "Export Word", click the button to export the Word: Click to download the template:
| |
| Mobile | Only support "Pagination Preview" and "Data Entry Preview" of the general report | |
