Inititialising Printing in a Procedure Body

For a Device select/print procedure body printing is initialised will be initialised on entry to the owning procedure. The print device will be closed again on exit from the procedure. This allows the procedure body itself and all the subsidiary procedures to print.

To initialise printing in a procedure body:

  1. From the Program Editing Functions menu select Program Summary
  2. Make sure the Initialise printer/file output option is not enabled - clear it if necessary.
  3. What you do next will depend on your exact requirements:
  4. In both cases, you can now include Device/Select Print procedures in your procedure tree. Such procedures can either continue to use the current print device (if they specify "default_printer") , or they can select a new print device. See Procedure Overview for details.

The Program Editor will not allow you to set up a new Device select/print procedure underneath another one. Although you can cheat the Program Editor, by moving procedures around, the Program Compiler specifically checks for this, and will disable device selection in any subsidiary procedures of a procedure that does initialise a device.