TabRangeMerge

Syntax

bool TabRangeMerge(string mon)

Parameters

mon. Moniker for working with table cell range.

Description

The TabRangeMerge operation merges table cell range.

Comments

To execute the operation, in the mon field specify moniker of regular report instance with the !Sheets!sheet key!range address postfix. The operation results in the logical True if cells were merged successfully.

Example

Below is the example of merging cell range on regular report sheet. The request contains moniker for working with range. The response contains whether the operation is executed successfully.

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">
<TabRangeMerge xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">S1!M!S!P1!Sheets!1!A0:B3</mon>
  </TabRangeMerge>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"TabRangeMerge" :
{
"mon" : "S1!M!S!P1!Sheets!1!A0:B3"
}
}

JSON response:

{
"TabRangeMergeResult" : "1"
}
public static bool MergeRange(string moniker, string sheetKey, string address)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tTab = new TabRangeMerge()
{
mon = moniker + "!Sheets!" + sheetKey + '!' + address
};
// Merge range
var result = somClient.TabRangeMerge(tTab);
return result;
}

See also:

Table