PixelHeight: Integer;
The PixelHeight property determines the chart height in pixels.
To execute this example, there should be a form for a button with the name Button1 and the UiErAnalyzer and ImageBox components with the names 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.PixelHeight := 300;
Exp.PixelWidth := 300;
ImageBox1.Image := Exp.GetBitmap;
End Sub Button1OnClick;
Clicking the button loads a graphic presentation of a chart used in the express report, to the ImageBox1 component. The chart is to have specified height and width (in pixels).
See also: