PrxAllNamedRegionsResult GetPrxAllNamedRegions(PrxId prxMon)
prxMon. Moniker of opened regular report instance.
The GetPrxAllNamedRegions operation gets the collection of named ranges created on regular report sheets.
To execute the operation, in the nrMon field specify moniker of regular report instance. The moniker can be obtained on executing the OpenPrxMeta operation.
The operation results in the obtained collection of named ranges.
Below is the example of getting all named ranges created in regular report. The request contains moniker of opened regular report instance. The response contains the obtained list of named ranges.
{
"GetPrxAllNamedRegions" :
{
"prxMon" :
{
"id" : "ILBNJNHKDBCAGOAEGGMCAJHIOKJPOKMEOIOADBDOFONILPAG!M!S!PAJBBFBIKDBCAGOAEJOAGHLNCNALCNCJEOLBLLFIDBFHIGLPO"
}
}
}
{
"GetPrxAllNamedRegionsResult" :
{
"sar" :
{
"shk" :
{
"k" : "1"
},
"regs" :
{
"its" :
{
"it" :
[
{
"left" : "1",
"top" : "1",
"width" : "10",
"height" : "2",
"k" : "7",
"backgroundColor" : "16054268",
"backgroundOpacity" : "0",
"borderColor" : "0",
"borderOpacity" : "0",
"borderStyle" : "0",
"borderWeight" : "2",
"name" : "Header"
},
{
"left" : "1",
"top" : "3",
"width" : "10",
"height" : "10",
"k" : "8",
"backgroundColor" : "16054268",
"backgroundOpacity" : "0",
"borderColor" : "0",
"borderOpacity" : "0",
"borderStyle" : "0",
"borderWeight" : "2",
"name" : "Data"
}
]
}
}
}
}
}
public static PrxAllNamedRegionsResult GetPrxAllNamedRegions(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetPrxAllNamedRegions()
{
prxMon = new PrxId() { id = moniker }
};
// Get all named ranges
var result = somClient.GetPrxAllNamedRegions(tGet);
return result;
}
See also: