Successfully!

Error!

You are viewing 10.0 help doc. More details are displayed in the latest help doc

Export Report Interface

exportReportToExcel

MethodexportReportToExcel(extype)Export report to Excel
  Parameterextype: string

Specified format when exporting, string

  • page :export by page

  • simple :export as is

  • sheet :export by page and sheet

Return valuevoid
   Example

Example 1: If the obtained report block object is defined as report , export Excel by page and sheet

report.gexportReportToExcel('sheet');

Example 2: Export by page and shhet in general reports

_g().exportReportToExcel('sheet');

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:

Export Excel.cpt

1.gif

MobileOnly support "Pagination Preview" and "Data Entry Preview" of the general report

exportReportToImage

MethodexportReportToImage(extype)

Export report as image

Note: Dashboards are not supported

  Parameterextype: string

Specified format when exporting, string

  • png:png format

  • jpg:jpg format

  • gif:gif format

Return valuevoid
   Example

Example 1: If the obtained report block object is defined as report , export the picture in png format

report.exportReportToImage('png');

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:

Export Image.cpt

2.gif

MobileOnly support "Pagination Preview" and "Data Entry Preview" of the general report

exportReportToPDF

MethodexportReportToPDF()

Export report as PDF

Note: Dashboards are not supported

  Parameter-

-

Return valuevoid
   Example

Example 1: If the obtained report block object is defined as report , the report is exported to PDF

report.exportReportToPDF();

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:

Export PDF.cpt

3.gif

MobileOnly support "Pagination Preview" and "Data Entry Preview" of the general report

exportReportToWord

MethodexportReportToWord()

Export report as Word

Note: Dashboards are not supported

  Parameter-

-

Return valuevoid
   Example

Example 1: If the obtained report block object is defined as report , the report is exported to Word

report.exportReportToWord();

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:

Export Word.cpt

4.gif

MobileOnly support "Pagination Preview" and "Data Entry Preview" of the general report


Attachment List


Theme: 11.0 New Features
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

Doc Feedback