GetPrxStyleSheetResult GetPrxStyleSheet(string mon, StyleSheetMdPattern tPattern)
mon. Moniker of opened regular report instance.
tPattern. Operation execution pattern.
The GetPrxStyleSheet operation gets a styles table connected in regular report.
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.
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.
{
"GetPrxStyleSheet" :
{
"mon" : "BHGFKLHCBNDPFOAEABNELEOBLJJGGNLEBKOPJFEJDMKMADKA!M!S!PDBPIEBICBNDPFOAELDHONAGEJFGJIEMEGINMKELIDHFLHMIB",
"tPattern" :
{
"preview" : "true",
"ps" :
{
"width" : "200",
"height" : "100"
}
}
}
}
{
"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: