Your report can be printed directly from Flexmonster via the OS print manager.
In this guide, you will learn how to:
Note 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:
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 or chart view will be printed instead.
To print the report programmatically, use the print() API call:
flexmonster.print();
This will open the OS print manager from where you can start printing. Try it on JSFiddle.
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>" }; flexmonster.print(options);
Check out how this code works on JSFiddle.