WbkRibbonView.Printing

Syntax

Printing: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The Printing event is fired on selecting the print menu of the workbook main menu.

Example

To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:

//Get the Ribbon component
var ribbonView = workbookBox.getRibbonView();
//Subscribe to the Print workbook main menu item
ribbonView.Printing.add(function()
{
	alert('The Print workbook main menu item is selected');
});

To execute the example, select the Print item in main menu of the workbook, after that the following message appears in the screen: The Print item is selected in main menu of the workbook.

See also:

WbkRibbonView