OpItemKey PrxMetaSheetsAdd(string mon, PrxMetaSheetsAddArg tArg)
mon. Moniker for working with regular report sheets.
tArg. Operation execution parameters.
The PrxMetaSheetsAdd operation adds a new sheet to regular report.
To execute the operation, in the mon field specify regular report instance moniker with the !Sheets postfix to work with sheets, and in the tArg field specify parameters of added sheet.
The moniker can be obtained on executing the OpenPrxMeta operation.
The operation results in the key of added sheet.
Below is the example of adding a sheet to regular report. The request contains moniker for working with sheets and a type of added sheet. The response contains the key of created sheet.
{
"PrxMetaSheetsAdd" :
{
"mon" : "S1!M!S!P1!Sheets",
"tArg" :
{
"n" : "New sheet",
"type" : "Table"
}
}
}
{
"PrxMetaSheetsAddResult" :
{
"k" : "2"
}
}
public static OpItemKey AddPrxSheet(string moniker, string sheetName)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tAdd = new PrxMetaSheetsAdd()
{
tArg = new PrxMetaSheetsAddArg()
{
type = PrxSheetType.Table,
n = sheetName
},
mon = moniker + "!Sheets"
};
//Add a new sheet
var result = somClient.PrxMetaSheetsAdd(tAdd);
return result;
}
See also: