Progress
Results Administration
and Development Guide


Output Solutions in Results

By default, Results allows the user to view query output on screen using the Print Preview option and to direct output to the default system printer, a file, or the system clipboard using the Print menu options. You can develop your own output solutions and integrate them as features in Results. Several sample output feature procedures located in the aderes product directory provide examples for your own output solutions. Table 3–9 describes the sample output feature procedures.

Table 3–9: Sample Output Feature Procedures 
Output
Procedure
Description
Syntax of Required Input
Parameter String
u-cprint.p  
Sends the output of the current query to a specified printer with control characters using the OUTPUT TO and PUT CONTROL statements.
printer [, control ]...
where printer is the operating system name of a printer and control is an integer representing the ASCII character value of a printer control character.
u-thru.p  
Sends the output of the current query to a specified printer using the OUTPUT THROUGH statement. This procedure is designed exclusively for use on character-mode systems.
printer
where printer is the operating system name of a spooled print device.
u-to.p  
Sends the output of the current query to a specified printer using the OUTPUT TO statement.
printer
where printer is the name of a printer.
u-pprog.p  
Generates a temporary procedure file for the current query, then runs a specified Progress procedure with the generated procedure as an argument.
procedure
where procedure is the name of a Progress procedure.
u-pview.p  
Sends the output of the current query to a temporary text file, then runs a specified Progress procedure with the temporary text file as an argument.
procedure
where procedure is the name of a Progress procedure.

NOTE: You cannot use these sample output procedures to direct output for queries in the browse and form views.

Follow these steps to add a sample output procedure to Results as a feature and menu option:

  1. Choose Query Customize Feature to access the Feature Editor.
  2. Define the feature, then choose Add. For example, the following list provides information that defines a feature that uses the u-cprint.p procedure to direct query output and printer control characters to a specified printer:
    • Name — PrintCompressed
    • Program — /usr/dlc/gui/aderes/u–cprint.p
    • Argument — lpr,15
    • Label — To &lpr compressed
  3. Choose Query Customize Menu Layout to access the Menu Editor.
  4. Add the new feature to the Query Print menu.

For more information about output routing solutions in Progress, see the Progress Programming Handbook.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095