WbkRibbonView.CreatedReport

Syntax

CreatedReport: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The CreatedReport event is fired on selecting the New Workbook item in main menu of the workbook.

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 event of selecting the New Workbook item of the workbook main menu
ribbonView.CreatedReport.add(function() { alert('The New Workbook workbook main menu item is selected'); });

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

See also:

WbkRibbonView