GetChartExporter: IChartExporter;
The GetChartExporter method creates an object to export the express report chart.
Sub UserProc;
Var
Mb: IMetabase;
Analyzer: IEaxAnalyzer;
Exp: IExAnalyzerExporter;
ChartExp: IChartExporter;
Begin
MB := MetabaseClass.Active;
Analyzer := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
Exp := New ExAnalyzerExporter.Create;
Exp.ExAnalyzer := Analyzer;
Analyzer.Grid.Refresh;
ChartExp := Exp.GetChartExporter;
ChartExp.Chart := Analyzer.Chart.Chart;
ChartExp.ExportToFile("c:\chart.jpg", "JPG");
End Sub UserProc;
After executing this example the express report chart is exported to JPG format. Express report identifier: EXPRESS_REPORT.
See also: