ChartSettings GetChartSettings(ChartId tChart)
tChart. Chart moniker.
The GetChartSettings operation gets chart settings.
To execute the operation, determine in the tChart field the chart moniker. The chart moniker is based on moniker of the repository object, with the chart of which the user is working, following the rules:
"Express report instance moniker"!Chart. Express report chart (if the express report consists of a single sheet).
"Express report instance moniker"!Sheets!"Sheet key"!Chart. Chart of the selected express report sheet (if the express report consists of several sheets).
"Workbook instance moniker"!Chart. Workbook chart (if the workbook consists of a single sheet).
"Workbook instance moniker"!Sheets!"Sheet key"!Chart. Chart of specified workbook sheet (if the workbook consists of several sheets).
"Regular report instance moniker"!Sheets!"Sheet key"!Objects!"Chart identifier". Chart positioned on a regular report sheet.
The operation results in getting chart settings.
Below is the example of getting settings of the chart created in regular report. The request contains chart moniker. The response contains obtained settings.
{
"GetChartSettings" :
{
"tChart" :
{
"id" : "S1!M!S!P1!Sheets!1!Objects!PrxChart1"
}
}
}
{
"GetChartSettingsResult" :
{
"type" : "1",
"view3d" : "0",
"uzs" : "0",
"bg" :
{
"type" : "0"
},
"bd" :
{
"enabled" : "0"
},
"ornt" : "0",
"accum" : "0",
"inter" : "Selection",
"zm" : "None"
}
}
public static ChartSettings GetChartSettings(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetChartSettings()
{
tChart = new ChartId()
{
id = moniker
}
};
// Get settings
var result = somClient.GetChartSettings(tGet);
return result;
}
See also: