Hello,
i'am wondering if it is possible to create chart completly from code in IntraWeb app and just export .bmp picture of it.
I tried like so:
var chart: TAdvChartView;
begin
chart:=TAdvChartView.Create(nil);
chart.BeginUpdate;
...
Chart.EndUpdate; <---- Here debuger says "Control '' has no parent window"
Is any work around this, like fake parent window.
I just need bitmap to pass to Reporting tool
Any advice is appreciated
Hi,
Please note that for IntraWeb applications, it is required to use the TTIWAdvChart control.
Example:
Example:
Var
chart: TTIWAdvChart;
begin
chart := TTIWAdvChart.Create(Self);
chart.BeginUpdate;
//
chart.EndUpdate;
chart.Chart.SaveToImage('chart.png', 400, 200, TChartImageType.itPNG);