Adding #INCLUDE Files

#INCLUDE files write external source files into Production Reporting report specifications. Use #INCLUDE files to keep commonly-used routines in a single file and reference or "include" that file in programs that use the routine.

For example, if you have a set of #DEFINE commands for different printers to control initialization, font changes, and page size declarations, you could reference the appropriate #INCLUDE file depending on the printer used.

*  To add an #INCLUDE file to an SQR Production Reporting Studio report:

  1. Select Report, then Includes from the menu at the top of the Layout window.

    The Include Files dialog box is displayed.

    The Include Files dialog box displays all the #INCLUDE files in the report. The order in which the #INCLUDE files appear is the order in which Production Reporting executes the files. To change the order, select an #INCLUDE file and click Move Up or Move Down.

  2. Click Add to add an #INCLUDE file.

    You can also click Edit to edit an #INCLUDE file, or Remove to remove an #INCLUDE file.

    The Include File dialog box is displayed.

  3. In the Path field, enter the path to the #INCLUDE file and the name of the #INCLUDE file.

    To search for a specific #INCLUDE file, click Browse.

  4. In the Placement listbox, select an option to define where to place the #INCLUDE file in your Production Reporting program.

    Placement options include:

    • Pre-Setup

    • Post-Setup

    • Pre-Header

    • Pre-Footer

    • End of File