bool CloseWbk(WbkId tWbk)
tWbk. Opened workbook instance moniker.
The CloseWbk operation closes an instance of opened workbook.
To execute the operation, in the tWbk parameter specify moniker of the workbook instance to be closed. The moniker can be obtained on executing the OpenWbk operation. The operation results in the logical True if the object was closed successfully.
Below is the example of closing workbook instance. The request contains closed workbook moniker. The response contains whether closing was successful.
{
"CloseWbk" :
{
"tWbk" :
{
"id" : "S1!M!S!W4"
}
}
}
{
"CloseWbkResult" : "1"
}
public static bool CloseWbk(WbkId id)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClose = new CloseWbk()
{
tWbk = id
};
// Close workbook
var result = somClient.CloseWbk(tClose);
return result;
}
See also: