GetStyleSheetResult GetStyleSheet(StyleSheetId tStyleSheet, GetStyleSheetArg tArg)
tStyleSheet. Styles table moniker.
tArg. Operation execution parameters.
The GetStyleSheet operation gets metadata of styles table styles.
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.
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.
{
"GetStyleSheet" :
{
"tStyleSheet" :
{
"id" : "CPDKLBGLHHOOFOAEEOBMIPONHEFJBEBEOLJEMAEIDCPLAAGC!M!S!SDJNKBJGLHHOOFOAENACKGIKGBKMHOKOEOJBIKCBEOKJJAPGE"
},
"tArg" :
{
"pattern" :
{
"preview" : "true"
}
}
}
}
{
"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: