Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dynamically_load_reports_from_a_file_structure [2019/01/17 09:04] (current)
Line 1: Line 1:
 +={$page}=
 +
 +
 +
 +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:
 +
 +
 +
 +<​html><​div style="​margin-left:​ 20px;">​ C:\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">​ Files\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>​ Cyrious\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>>​ Control\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>>>​ Reports\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>>>>​ Reports On Main Menu\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>>>>>​ Sales </​div></​html>​
 +
 +
 +
 +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:
 +
 +
 +
 +<​html><​div style="​margin-left:​ 20px;">​ C:\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">​ Files\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>​ Cyrious\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>>​ Control\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>>>​ Reports\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>>>>​ Reports On Action Menu\ </​div></​html>​
 +
 +
 +
 +<​html><​div style="​margin-left:​ 40px;">>>>>>>​ For Orders (& Invoices) </​div></​html>​
 +
 +
 +
 +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==
 +  * Backlinks [[include_pagepage_componentbacklinks|include page="​{$page}"​ component="​backlinks"​]]
 +
 +
 +
 + 
 +
 +
 +
 +