print(options: Object)
[starting from version: 1.4]
Prints the current view via the OS print manager. If the current view is the drill-through view, the grid or chart view will be printed instead.
To learn more about printing, see this guide: Print the report.
1) Print the content:
pivot.print();
Try the example on JSFiddle.
2) Add header and footer:
const options = {
header:"<div>##CURRENT-DATE##</div>",
footer:"<div>##PAGE-NUMBER##</div>"
}
pivot.print(options);
Open the example on JSFiddle.