How To…Chart As Image

Question

“How do I show a TeeChart created on a form as an image on a report?”

Solution

Use the TeeChart routine TeeCreateMetafile to export the chart to an image then assign it to a TppImage on a report.

Download: ChartAsImage.zip

Sample Delphi code: