bool SetDashboardGxPageSettings(string mon, DashboardExportPageSettings tArg)
mon. Moniker of opened dashboard instance.
tArg. Operation execution parameters.
The SetDashboardGxPageSettings operation changes information panel print options.
To execute the operation, in the mon field specify moniker of opened information panel instance, and in the tArg field specify set print options. The moniker can be obtained on executing the OpenDashboard operation.
The operation results in the logical True if the settings were changed successfully.
Below is the example of changing information panel print options. The request contains moniker of opened information panel instance and set options. The response contains whether the settings were changed successfully.
{
"SetDashboardGxPageSettings" :
{
"mon" : "DBKCMEPAFHGGGOAEOMNHDEKIAPJLIFDEKIHGCJBHPKMFNJEM!M!S!PDACBALPAFHGGGOAEICMCFDBNGDDKBIPEKLCGKIOKAKHGGDPG",
"tArg" :
{
"centerHorizontal" : "true",
"centerVertical" : "true",
"scale" :
{
"value" : "0.8",
"fitToPages" : "false"
}
}
}
}
{
"SetDashboardGxPageSettingsResult" : "1"
}
public static bool SetDashboardGxPageSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tSet = new SetDashboardGxPageSettings()
{
// Moniker for working with visualizer
mon = moniker,
tArg = new DashboardExportPageSettings()
{
centerHorizontal = true,
centerVertical = true,
scale = new TabPrintScale()
{
fitToPages = false,
value = 0.8 // Zoom - 80%
}
}
};
// Change information panel print options
var result = somClient.SetDashboardGxPageSettings(tSet);
return result;
}
See also: