Dynamically Load Reports from a File Structure

Table of Contents

Many users have custom reports they have developed in Word or Crystal Reports (or had developed for them). The process of adding these reports to the menu has involved multiple steps that must be repeated for every report or for report changes.

Control 4 permits an alternate way of attaching reports to the menu. You can reconstruct the report menu as a file structure in your reports folder (C:\Program Files\Cyrious\Control\Reports by default) and then drop the files into the correct folder and they will appear in the menus when you restart Control.

For example, to add a new report under Reports | Sales on the main menu, you could create the following folder structure:

  • C:\
    • Files\
      • Cyrious\
        • Control\
          • Reports\
            • Reports On Main Menu\
              • Sales

Place the custom report (*.rpt) in that folder. When you restarted Control, the report will appear in the menu. To add a new menu, you could create the following folder structure:

  • C:\
    • Files\
      • Cyrious\
        • Control\
          • Reports\
            • Reports On Action Menu\
                • For Orders (& Invoices)

Omit the leading two periods in the folder name, since Windows won’t allow two periods at the start of a folder name. Now place your custom invoice in that folder, and it will appear in the invoice menu when you restart.

You can still make changes to the report configuration for reports that are dynamically configured. Control will create a configuration file in the same folder with “.CONFIG” after the name of the report.

See Also