Menu
Download Free Trial
Table of contents

print

print(options:Object)

[starting from version: 1.4]

Prints the content of the grid or chart via OS print manager.

Parameters

options (optional) – Object. Can contain the following print properties:

  • header (starting from v2.211) (optional) – String. Header is set in HTML format (tags, inline styles, img with base64 src), rendered in the browser and added as an image to the printed PDF file. The following tokens can be used: ##CURRENT-DATE##, ##PAGE-NUMBER##. They will be replaced by appropriate data.
  • footer (starting from v2.211) (optional) – String. Footer is set in HTML format (tags, inline styles, img with base64 src), rendered in the browser and added as an image to the printed PDF file. The following tokens can be used: ##CURRENT-DATE##, ##PAGE-NUMBER##. They will be replaced by appropriate data.

Examples

flexmonster.print();

With header and footer:

var options = {
	header:"<div>##CURRENT-DATE##</div>",
	footer:"<div>##PAGE-NUMBER##</div>"
}
flexmonster.print(options);

See also

exportTo