How To…Render a Form Control to a Report

Question

“How can I render a control on my form, to my report?”

Solution

The following example uses the ReportBuilder PaintBox control to render a TProgressBar and a TGauge to a report. The TProgressBar is a TWinControl descendant and the TGauge is a TGraphicControl descendant.

Download:  RenderControlToPaintBox.zip