DashboardExportPageSettings GetDashboardGxPageSettings(string mon)
mon. Moniker of opened dashboard instance.
The GetDashboardGxPageSettings operation gets information panel print options.
To execute the operation, in the mon field specify moniker of opened information panel instance. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the obtained print options.
Below is the example of getting information panel print options. The request contains moniker of opened information panel instance. The response contains the obtained settings.
{
"GetDashboardGxPageSettings" :
{
"mon" : "DBKCMEPAFHGGGOAEOMNHDEKIAPJLIFDEKIHGCJBHPKMFNJEM!M!S!PDACBALPAFHGGGOAEICMCFDBNGDDKBIPEKLCGKIOKAKHGGDPG"
}
}
{
"GetDashboardGxPageSettingsResult" :
{
"paperSize" :
{
"width" : "210000",
"height" : "297000",
"units" : "Mkm"
},
"margins" :
{
"left" : "30",
"top" : "20",
"right" : "20",
"bottom" : "20",
"units" : "Mm"
},
"paperFormat" : "A4",
"paperOrientation" : "Portrait",
"centerHorizontal" : "1",
"centerVertical" : "1",
"scale" :
{
"value" : "0.8",
"fitToPages" : "0",
"pageWidth" : "1",
"pageHeight" : "1"
}
}
}
public static DashboardExportPageSettings GetDashboardGxPageSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetDashboardGxPageSettings()
{
// Moniker for working with visualizer
mon = moniker
};
// Get information panel print options
var result = somClient.GetDashboardGxPageSettings(tGet);
return result;
}
See also: