OpenWbk

Syntax

OpenWbkResult OpenWbk(OdId tOb, OpenWbkArg tArg)

Parameters

tOb. Moniker of a repository object that is a workbook.

tArg. Operation execution parameters.

Description

The OpenWbk operation opens a workbook and gets context for working with this workbook.

Comments

To execute the operation, in the tOb field specify moniker of the object that is a workbook, and in the tArg field specify opening parameters. The tArg field can contain the following information: workbook opening mode (view or edit), values of the parameters to be sent to parametric data sources, and parameters for getting and changing data or metadata. In the tArg.metaGet or tArg.metaGetActiveSheet field specify parameters for getting data or metadata. In the tArg.metaSet field specify parameters for changing data or metadata. The operation results in the moniker of opened workbook instance, and the metadata if a corresponding pattern was defined on executing the operation. The further work with opened workbook is executed using the GetWbkMd and SetWbkMd operations. Use the CloseWbk operation to close an opened workbook instance.

To work with a workbook table, use the GetTabSheetData and SetTabSheetData operations, to work with a workbook chart, use the GetChart and SetChart operations.

Example

Various methods of using the operation are given in the following examples:

Example name
Opening workbook for view
Opening workbook with changing data display period

See also:

Working with Time Series Database