RibbonView.Printing

Syntax

Printing: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The Printing event is fired on selecting the Print item in main menu of the regular report.

Example

To execute this example, the HTML page must contain ReportBox component named reportBox, that uses the regular report named prxReport as its source (see. Example of the ReportBox Component Layout). Add a handler for the Printing event:

       reportBox.getRibbonView().Printing.add(function (sender, args) {
           reportBox.showPrintPreview(prxReport)
       })

After executing the example selecting the Print item in the main menu opens a page where the user can preview printed report version.

See also:

RibbonView