To use a custom form, report, or data module class,

  1. Open a new or existing form or data module to which you want to apply a custom class.

Setting a custom report always causes a new report to be created. To apply a custom class to an existing report, open the report in the source code editor and change the CLASS statement:

  CLASS MyReport OF Report

  to read:

  CLASS MyReport OF "MyCustomReport" FROM "MyCustomRep.CRP"

Your custom class now applies to the current file in the designer. In addition, subsequent new files of that type will use the current setting in the Set Custom Class dialog box. To change this, choose File|Set Custom Class, and either enter a new form or report custom class, or choose the Clear Custom Class button to restore the default class as the setting.