Problem printing TChart
Posted: Tue Nov 25, 2008 3:59 pm
Hi,
I have a very strange problem when I print a chart on a canvas or saving the bitmap to a file :
- I create a TChart component and assign to it the TChart I have on my form (used to change some parameters like hiding legend)
- I copy the series with the method "CloneChartSeries"
- I save the bitmap to a file using TeeCreateBitmap.SaveToFile
My problem is that it works correctly on a workstation, but on another worstation, when I save the bitmap, the size of the Chart and the color of the series are changed. Furthermore, if I display the colors with "ShowMessage", they are correct, but not on the bitmap.
Have you any idea of the origin of the problem?
Best regards,
Paul
I have a very strange problem when I print a chart on a canvas or saving the bitmap to a file :
- I create a TChart component and assign to it the TChart I have on my form (used to change some parameters like hiding legend)
- I copy the series with the method "CloneChartSeries"
- I save the bitmap to a file using TeeCreateBitmap.SaveToFile
My problem is that it works correctly on a workstation, but on another worstation, when I save the bitmap, the size of the Chart and the color of the series are changed. Furthermore, if I display the colors with "ShowMessage", they are correct, but not on the bitmap.
Have you any idea of the origin of the problem?
Best regards,
Paul