Report Builder Compatibility
Posted: Thu Jan 03, 2013 6:51 pm
After upgrading to the 2012 version of TeeChart the functionality of printing to ReportBuilder is not working anymore.
The source code in Report builder to paint a chart to a report (that does not work) is as follows:
This, however, does.
Did you change the FChart.Draw() function from 2011 to 2012 version?
Do I need to specify anything else for the code to work?
Kind regards,
Willem Louw
The source code in Report builder to paint a chart to a report (that does not work) is as follows:
Code: Select all
pmBitmap:
begin
lBitmap := TBitmap.Create;
lBitmap.Height := spHeight;
lBitmap.Width := spWidth;
FChart.Draw(lBitmap.Canvas, lRect);
lDrawCommand.Picture.Graphic := lBitmap;
lBitmap.Free;
end;
Code: Select all
lDrawCommand.Picture.Graphic := FChart.TeeCreateBitmap(clWhite,lRect);
Do I need to specify anything else for the code to work?
Kind regards,
Willem Louw