GetPrxStyleSheet

Syntax

GetPrxStyleSheetResult GetPrxStyleSheet(string mon, StyleSheetMdPattern tPattern)

Parameters

mon. Moniker of opened regular report instance.

tPattern. Operation execution pattern.

Description

The GetPrxStyleSheet operation gets a styles table connected in regular report.

Comments

To execute the operation, in the mon field specify moniker of opened regular report instance, and in the tPattern field specify the pattern that will be used to get information about styles table. The moniker can be obtained after executing the OpenPrxMeta operation.

The operation results in the information about the styles table.

Example

Below is the example of getting information about a styles table connected to a regular report. The request contains moniker of opened regular report instance. The response contains the obtained information.

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">
<GetPrxStyleSheet xmlns="http://www.fsight.ru/PP.SOM.Som">
  <mon xmlns="">BHGFKLHCBNDPFOAEABNELEOBLJJGGNLEBKOPJFEJDMKMADKA!M!S!PDBPIEBICBNDPFOAELDHONAGEJFGJIEMEGINMKELIDHFLHMIB</mon>
<tPattern xmlns="">
  <preview>true</preview>
<ps>
  <width>200</width>
  <height>100</height>
  </ps>
  </tPattern>
  </GetPrxStyleSheet>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetPrxStyleSheetResult 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="">
  <id />
  </id>
<key xmlns="">
  <k>317260</k>
  </key>
<meta xmlns="">
<name>Styles table</name>
  <type>0</type>
<items>
<it>
  <key>1</key>
  <tag>TAB</tag>
  <preview>iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAI2SURBVHhe7dnhbaMwAIZhxmMgxmEXVskmPgwpNQG+qtUd6UnPIyHFMYU/fmtouwJcEggEAoHgGMhjLH3XlW47hjI9p95rKkPXl/HxHMIN9oFMwxzEfhE+xv4XRFLjqLEKhHs1gayLcDiU8Chj35X+TStzDXS+/zDMO5tAuNdnIMujVdopPn6Lvxy1qNefXXaiZnx4bKvHc/6L+z6maU60fqjnCYR7fQZSF3U/rosxOtlRdot8nT8GcjH+IpCNQHiDvx/IfJ1hDEFUAuE/8Y1HrA8pkHlumCN7vVYaL5/3j1+n7zvLeQLhXs1L+rrwjy/pdVOYF+42EQKpu0c9LQVRtePTuZMQrr6Hf6gJZLa8XO8X4fpXpPa7q0D60tfdYxv/MJD50+n/O573EAh32gdSLQuxfeRpF291FUiz+2yLfj13uU67NbVRHO7nEYvf4xgIsBEIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgELhUyh/L4CwT6D/tVwAAAABJRU5ErkJggg==</preview>
<name>Style1</name>
  <id>I1</id>
  </it>
  </items>
  </meta>
  </GetPrxStyleSheetResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetPrxStyleSheet" :
{
"mon" : "BHGFKLHCBNDPFOAEABNELEOBLJJGGNLEBKOPJFEJDMKMADKA!M!S!PDBPIEBICBNDPFOAELDHONAGEJFGJIEMEGINMKELIDHFLHMIB",
"tPattern" :
{
"preview" : "true",
"ps" :
{
"width" : "200",
"height" : "100"
}
}
}
}

JSON response:

{
"GetPrxStyleSheetResult" :
{
"id" :
{
"id" : ""
},
"key" :
{
"k" : "317260"
},
"meta" :
{
"name" : "Styles table",
"type" : "0",
"items" :
{
"it" :
{
"key" : "1",
"tag" : "TAB",
"preview" : "iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAI2SURBVHhe7dnhbaMwAIZhxmMgxmEXVskmPgwpNQG+qtUd6UnPIyHFMYU\/fmtouwJcEggEAoHgGMhjLH3XlW47hjI9p95rKkPXl\/HxHMIN9oFMwxzEfhE+xv4XRFLjqLEKhHs1gayLcDiU8Chj35X+TStzDXS+\/zDMO5tAuNdnIMujVdopPn6Lvxy1qNefXXaiZnx4bKvHc\/6L+z6maU60fqjnCYR7fQZSF3U\/rosxOtlRdot8nT8GcjH+IpCNQHiDvx\/IfJ1hDEFUAuE\/8Y1HrA8pkHlumCN7vVYaL5\/3j1+n7zvLeQLhXs1L+rrwjy\/pdVOYF+42EQKpu0c9LQVRtePTuZMQrr6Hf6gJZLa8XO8X4fpXpPa7q0D60tfdYxv\/MJD50+n\/O573EAh32gdSLQuxfeRpF291FUiz+2yLfj13uU67NbVRHO7nEYvf4xgIsBEIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgELhUyh\/L4CwT6D\/tVwAAAABJRU5ErkJggg==",
"name" : "Style1",
"id" : "I1"
}
}
}
}
}
public static GetStyleSheetResult GetPrxStyleSheet(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetPrxStyleSheet()
{
tPattern = new StyleSheetMdPattern()
{
preview = true,
ps = new Size() { height = 100, width = 200 }
},
mon = moniker
};
// Get information about styles table
var result = somClient.GetPrxStyleSheet(tGet);
return result;
}

See also:

Working with Regular Reports