GetStyleSheet

Syntax

GetStyleSheetResult GetStyleSheet(StyleSheetId tStyleSheet, GetStyleSheetArg tArg)

Parameters

tStyleSheet. Styles table moniker.

tArg. Operation execution parameters.

Description

The GetStyleSheet operation gets metadata of styles table styles.

Comments

To execute the operation, in the tStyleSheet field specify styles table moniker, and in the tArg.pattern field specify the pattern that will be used to get information about styles. The moniker can be obtained on executing the OpenStyleSheet operation or created based on the report moniker, if styles are set up or stored together with the report.

The operation results in the information about styles.

Example

Below is the example of getting information about available styles table styles. The request contains moniker of opened styles table instance. The response contains information about created styles.

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">
<GetStyleSheet xmlns="http://www.fsight.ru/PP.SOM.Som">
<tStyleSheet xmlns="">
  <id>CPDKLBGLHHOOFOAEEOBMIPONHEFJBEBEOLJEMAEIDCPLAAGC!M!S!SDJNKBJGLHHOOFOAENACKGIKGBKMHOKOEOJBIKCBEOKJJAPGE</id>
  </tStyleSheet>
<tArg xmlns="">
<pattern>
  <preview>true</preview>
  </pattern>
  </tArg>
  </GetStyleSheet>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetStyleSheetResult 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>CPDKLBGLHHOOFOAEEOBMIPONHEFJBEBEOLJEMAEIDCPLAAGC!M!S!SDJNKBJGLHHOOFOAENACKGIKGBKMHOKOEOJBIKCBEOKJJAPGE</id>
  </id>
<meta xmlns="">
<name>Styles table</name>
  <type>0</type>
<items>
<it>
  <key>1</key>
  <tag>TAB</tag>
  <preview>iVBORw0KGgoAAAANSUhEUgAAAHgAAAAVCAYAAACNDipWAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHaSURBVGhD7ZXdcQMhDISvH1eQBtxFXITf8+oe3EfKSE8XwFrNInR/43NyIcrMNxmDkBYtcEP6G4OuGcb7V9AjYXDnhMGds8rg67sGPngbxpsTFxwP8cyfzFySmXn+SmNnMZrHgmMya/Dt4xFw+fTng+Mza7B3exkcgIb0pGPufH/E4pk/pfGyPh2aE68B8vzb9VvBK8Og9pRuzDefpEwa4/xToGfeGptX95b+83hmr0sl+fzJ0qQ131sRqOYlKoPIzMZgagLX28NgrWX0Nbl53upydE4BA8uFkJyogZowrro8Rt+e5LwJf3Ivg/lUa8wrDZbcroHp96sMrpCcVr+9xb9q8NITrTgCtYmyIfzfarBlleG2uUbfrMHp9zNPdMY7nLof2d8hbjBELX4PHIGVQbk5NmalwdyktQeu0W1qN7mtNvldtD15g5HTaj+EwRmvqcUIHnMEssGl0TZGGsdr9jK4xEmeMmZqLx2Aan8bDGb9yIl10M690BqmfsGpa/fv9cgidfxJ0DxZ3LyMI1ANhkCKacyXNZ7BlrnNZNCERXgPjjbdywaDNRZwDTOHT5Z7+Dn+Jwz+S+QmVI0C0kQ+UP+BMLhzujM4qAmDOycM7pwwuHPU4KBXhvEbt9SBEBJ0pVAAAAAASUVORK5CYII=</preview>
<name>Style for headers</name>
  <id>I1</id>
  </it>
  </items>
  </meta>
  </GetStyleSheetResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetStyleSheet" :
{
"tStyleSheet" :
{
"id" : "CPDKLBGLHHOOFOAEEOBMIPONHEFJBEBEOLJEMAEIDCPLAAGC!M!S!SDJNKBJGLHHOOFOAENACKGIKGBKMHOKOEOJBIKCBEOKJJAPGE"
},
"tArg" :
{
"pattern" :
{
"preview" : "true"
}
}
}
}

JSON response:

{
"GetStyleSheetResult" :
{
"id" :
{
"id" : "CPDKLBGLHHOOFOAEEOBMIPONHEFJBEBEOLJEMAEIDCPLAAGC!M!S!SDJNKBJGLHHOOFOAENACKGIKGBKMHOKOEOJBIKCBEOKJJAPGE"
},
"meta" :
{
"name" : "Styles table",
"type" : "0",
"items" :
{
"it" :
{
"key" : "1",
"tag" : "TAB",
"preview" : "iVBORw0KGgoAAAANSUhEUgAAAHgAAAAVCAYAAACNDipWAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHaSURBVGhD7ZXdcQMhDISvH1eQBtxFXITf8+oe3EfKSE8XwFrNInR\/43NyIcrMNxmDkBYtcEP6G4OuGcb7V9AjYXDnhMGds8rg67sGPngbxpsTFxwP8cyfzFySmXn+SmNnMZrHgmMya\/Dt4xFw+fTng+Mza7B3exkcgIb0pGPufH\/E4pk\/pfGyPh2aE68B8vzb9VvBK8Og9pRuzDefpEwa4\/xToGfeGptX95b+83hmr0sl+fzJ0qQ131sRqOYlKoPIzMZgagLX28NgrWX0Nbl53upydE4BA8uFkJyogZowrro8Rt+e5LwJf3Ivg\/lUa8wrDZbcroHp96sMrpCcVr+9xb9q8NITrTgCtYmyIfzfarBlleG2uUbfrMHp9zNPdMY7nLof2d8hbjBELX4PHIGVQbk5NmalwdyktQeu0W1qN7mtNvldtD15g5HTaj+EwRmvqcUIHnMEssGl0TZGGsdr9jK4xEmeMmZqLx2Aan8bDGb9yIl10M690BqmfsGpa\/fv9cgidfxJ0DxZ3LyMI1ANhkCKacyXNZ7BlrnNZNCERXgPjjbdywaDNRZwDTOHT5Z7+Dn+Jwz+S+QmVI0C0kQ+UP+BMLhzujM4qAmDOycM7pwwuHPU4KBXhvEbt9SBEBJ0pVAAAAAASUVORK5CYII=",
"name" : "Style for headers",
"id" : "I1"
}
}
}
}
}
public static GetStyleSheetResult GetStyleSheetInfo(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetStyleSheet()
{
tArg = new GetStyleSheetArg()
{
pattern = new StyleSheetMdPattern()
{
preview = true
}
},
tStyleSheet = new StyleSheetId { id = moniker }
};
// Get information about styles table
var result = somClient.GetStyleSheet(tGet);
return result;
}

See also:

Working with Styles Table