How To…Create a Report Template Wizard

Question

“How can I can create a simple report wizard that implements a standard template?”

Solution

The following example shows how to create a custom report wizard and register it with RB. The TmyReportWizard class descends from TppCustomReportWizard and overrides a few simple methods. The ClassDescription and ClassBitmpa are used by the report designer’s ‘New…’ dialog. The Execute method loads a report template, called base.rtm. The initialization/finalization is used to register/unregister the wizard.

Download: ReportTemplateWizard.zip

Sample Delphi code: