Drawing Chart is blank
Posted: Tue Jan 31, 2012 5:52 pm
In previous versions, I used Method 1 below without fail. But in moving to the latest version, it doesn't work. I did some testing and Method 2 works fine:
I implemented Method 1 in a demo application and it worked fine. Any reason it might not be working?
Code: Select all
//Method 1
lChart.Draw(aRG.Bitmap.Canvas, lRect);
CodeSite.Send('Batch Gap Chart', aRG.Bitmap); // <--- this is blank
//Method 2
lBmp := lChart.TeeCreateBitmap(clWhite, lRect);
try
aRG.Bitmap.Assign(lBmp);
CodeSite.Send('Chart Bitmap', lBmp);
finally
lBmp.Free;
end;