Difference between revisions of "DB PRINT"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 12: | Line 12: | ||
==Description== | ==Description== | ||
− | The DB_PRINT environment variable | + | 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: |
<pre>DB_PRINT="lp -dmyprinter -onobanner"</pre> | <pre>DB_PRINT="lp -dmyprinter -onobanner"</pre> | ||
− | 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 conf files, but the PUTENV() function can be used to change this value, and the GETENV() function to query it. | + | 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. |
Revision as of 14:59, 8 June 2009
Class
Environment Variables / Symbols
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 Database Server, Recital Mirage Server