Applies to: apps for SharePoint | SharePoint Server 2010
Represents an Excel workbook.
The Ewa.Workbook represents the workbook associated with the Excel Web Access Web Part. Only one workbook can be associated with an Excel Web Access Web Part.
Using the Ewa.Workbook object, you can get information about the user session, get information about the workbook itself, get references to the sheets collection and the named items collection, get the active cell, named item, sheet, or selection, and get ranges in the workbook. You can also force a recalculation on the workbook, refresh data connections, and set parameters on the workbook.
The following code example shows how to get the path for the workbook using the EwaControl.getActiveWorkbook method when the applicationReady event is raised and then displays the workbook path in an alert message.