DB PRINT

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Used to define the default system printing operation


See Also

Configuration Files, DB_PRINTOPT, GETENV(), PUTENV(), SET PRINT, SET PRINTER


Description

The DB_PRINT environment variable is used to define the default system printing operation. It must be either a valid Operating System print command, e.g. on UNIX:

DB_PRINT="lp -dmyprinter -onobanner"

or the name of a file which contains such a command (and any other processing required.) By default, DB_PRINT is set to the file ‘print.unix’ in the recital/bin directory. This can be modified if required, to suit your particular printing environment. The ‘print.unix’ file contains a further environment variable, called DB_PRINTOPT, which can be set to the options that you require on the OS print command. By default, the value of DB_PRINTOPT is set in the conf files, but the PUTENV() function can be used to change this value, and the GETENV() function to query it.


Example

set printer to \\spooler
list status to print
set printer to

Products

Recital, Recital Server