Last modified: June 13, 2011
Applies to: apps for SharePoint | SharePoint Server 2010
Subscribes an event handler to the workbookChanged event.
The EwaControl.add_workbookChanged method subscribes an event handler to the workbookChanged event. The workbookChanged event is raised when the workbook is changed, including when the workbook is reloaded.
When the specified event handler for the workbookChanged event is invoked, it is invoked with a single argument of type Ewa.WorkbookEventArgs. The Ewa.WorkbookEventArgs object contains information about the workbook associated with the gridSynchronized event.
The following code example shows how to subscribe an event handler to the workbookChanged event that uses the Ewa.WorkbookEventArgs to display the path of the associated workbook in an alert message.