ResizeTabObjects

Syntax

bool ResizeTabObjects(TabSheetId tTabSheet, TabObjectMoveArg tArg)

Parameters

tTabSheet. Sheet moniker.

tArg. Operation execution parameters.

Description

The ResizeTabObjects operation resizes table objects.

Comments

To execute the operation, in the tTabSheet field specify moniker of the sheet that contains objects, and in the tArg field specify object resize parameters. The moniker can be based on the moniker of opened object instance, with which the work is executed.

The operation results in the logical True if the objects were resized successfully.

Example

Below is the example of resizing a chart located on a table sheet. The request contains sheet moniker and chart size to be determined. The response contains whether resize was successful.

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">
<ResizeTabObjects xmlns="http://www.fsight.ru/PP.SOM.Som">
<tTabSheet xmlns="">
  <id>GELCPBJDAHMNFOAEOGANNOOIMCBDPMLEFKAFDIFHOKGGDEFD!M!S!PLBMFNEJDAHMNFOAEKCMNMAJAJPHAFBGEILMEHGGEFPOMHMFJ!Sheets!1</id>
  </tTabSheet>
<tArg xmlns="">
<its>
<it>
  <id>PrxChart1</id>
<mm>
<lt>
  <x>70</x>
  <y>70</y>
  </lt>
<sz>
  <width>50</width>
  <height>50</height>
  </sz>
  </mm>
  </it>
  </its>
  </tArg>
  </ResizeTabObjects>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <ResizeTabObjectsResult 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">1</ResizeTabObjectsResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"ResizeTabObjects" :
{
"tTabSheet" :
{
"id" : "GELCPBJDAHMNFOAEOGANNOOIMCBDPMLEFKAFDIFHOKGGDEFD!M!S!PLBMFNEJDAHMNFOAEKCMNMAJAJPHAFBGEILMEHGGEFPOMHMFJ!Sheets!1"
},
"tArg" :
{
"its" :
{
"it" :
[
{
"id" : "PrxChart1",
"mm" :
{
"lt" :
{
"x" : "70",
"y" : "70"
},
"sz" :
{
"width" : "50",
"height" : "50"
}
}
}
]
}
}
}
}

JSON response:

{
"ResizeTabObjectsResult" : "1"
}
public static bool ResizeTabObjects(string reportMoniker, string sheetKey, string objectId)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new ResizeTabObjects()
{
tArg = new TabObjectMoveArg()
{
its = new TabObjectMoveItem[]
{
new TabObjectMoveItem()
{
id = objectId,
mm = new TabObjectCoordsMm()
{
lt = new PointF(){ x = 70, y = 70 },
sz = new SizeF(){ height = 50, width = 50 }
}
}
}
},
tTabSheet = new TabSheetId() { id = reportMoniker + "!Sheets!" + sheetKey}
};
// Change table object size
var result = somClient.ResizeTabObjects(tSet);
return result;
}

See also:

Table: Operations