InsertPrxShape

Syntax

InsertPrxShapeResult InsertPrxShape(string mon, PrxShapeInsertArgs tArg)

Parameters

mon. Regular report sheet moniker.

tArg. Operation execution parameters.

Description

The InsertPrxShape operation inserts a shape to a regular report sheet.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<InsertPrxShape xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">GAGEIOLDDJHBGOAEANJEBOBFBHGHAOJELKJLBCDMBBELJEGN!M!S!PDLHLCDMDDJHBGOAEKHDDNCJBEGLGDBHEFJGHJDPCONMFKBND!Sheets!1</mon>
<tArg xmlns="">
  <type>4</type>
<placement>
  <l>1</l>
  <t>1</t>
  <r>4</r>
  <b>4</b>
  </placement>
  </tArg>
  </InsertPrxShape>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<InsertPrxShapeResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <id xmlns="">PrxShape1</id>
  </InsertPrxShapeResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"InsertPrxShape" :
{
"mon" : "GAGEIOLDDJHBGOAEANJEBOBFBHGHAOJELKJLBCDMBBELJEGN!M!S!PDLHLCDMDDJHBGOAEKHDDNCJBEGLGDBHEFJGHJDPCONMFKBND!Sheets!1",
"tArg" :
{
"type" : "4",
"placement" :
{
"l" : "1",
"t" : "1",
"r" : "4",
"b" : "4"
}
}
}
}

JSON response:

{
"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:

Working with Regular Reports