IChartExporter.Scale

Syntax

Scale: Double;

Description

The Scale property determines a scale of a chart for export.

Comments

Increases the scale in a given number of times. The property can be any value above zero.

Example

Executing the example requires a form for a button named Button1 and the UiErAnalyzer and ImageBox components named UiErAnalyzer1 and ImageBox1 respectively.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    Exp: IChartExporter;
Begin
Chart := UiErAnalyzer1.ErAnalyzer.Chart.Chart;
    Exp := New ChartExporter.Create;
    Exp.Chart := Chart;
    Exp.Scale := 0.5;
    ImageBox1.Image := Exp.GetBitmap;
End Sub Button1OnClick;

After clicking the button the graphic view of the chart used in the express report is loaded to the ImageBox1 component using the specified scale.

See also:

IChartExporter