InsertPrxShapeResult InsertPrxShape(string mon, PrxShapeInsertArgs tArg)
mon. Regular report sheet moniker.
tArg. Operation execution parameters.
The InsertPrxShape operation inserts a shape to a regular report sheet.
To execute the operation, in the mon field specify moniker in the format: Regular report instance moniker!Sheets!Sheet key, and in the tArg field specify added shape parameters. Moniker of regular report instance can be obtained on executing the OpenPrxMeta operation.
The operation results in the identifier of inserted shape.
Below is the example of inserting a rounded rectangle to a regular report sheet. The request contains sheet moniker and rectangle insert parameters. The response contains identifier of the created shape.
{
"InsertPrxShape" :
{
"mon" : "GAGEIOLDDJHBGOAEANJEBOBFBHGHAOJELKJLBCDMBBELJEGN!M!S!PDLHLCDMDDJHBGOAEKHDDNCJBEGLGDBHEFJGHJDPCONMFKBND!Sheets!1",
"tArg" :
{
"type" : "4",
"placement" :
{
"l" : "1",
"t" : "1",
"r" : "4",
"b" : "4"
}
}
}
}
{
"InsertPrxShapeResult" :
{
"id" : "PrxShape1"
}
}
public static InsertPrxShapeResult InsertPrxShape(string moniker, uint sheetKey)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tAdd = new InsertPrxShape()
{
tArg = new PrxShapeInsertArgs()
{
type = 4, // Rounded rectangle
placement = new TabObjectCoordsPix()
{
l = 1,
t = 1,
r = 4,
b = 4
}
},
mon = moniker + "!Sheets!" + sheetKey
};
// Insert shape on report sheet
var result = somClient.InsertPrxShape(tAdd);
return result;
}
See also: