Your report can be printed directly from Flexmonster via the OS print manager.
In Flexmonster, you can also save, export, or share your report.
Step 1. Open a view that you want to print. It can be one of the following:
"grid_charts"
or by calling the showGridAndCharts method.Step 2. Select Export > Print on the Toolbar to print the view:
This will open the OS print manager from where you can start printing.
Note If you start printing in the drill-through view, the current grid, chart, or grid and charts view will be printed instead.
To print the report programmatically, use the print() API call:
pivot.print();
This will open the OS print manager from where you can start printing Live example.
The print()
API call also has an optional options parameter that can contain the following properties:
Here is an example with the header
and footer
properties:
const options = {
header:"<div>##CURRENT-DATE##</div>",
footer:"<div>##PAGE-NUMBER##</div>"
};
pivot.print(options);