Difference between revisions of "DB PRINT"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
{{YLM to do}}
+
==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 / symbol 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>
 +
 
 +
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.
 +
 
 +
 
 +
==Example==
 +
<code lang="recital">
 +
set printer to \\spooler
 +
list status to print
 +
set printer to
 +
</code>
 +
 
 +
==Products==
 +
Recital Database Server, Recital Mirage Server
 +
[[Category:Documentation]]
 +
[[Category:Configuration]]
 +
[[Category:Environment Variables|PRINT]]
 +
[[Category:Printing]]

Revision as of 14:56, 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 / symbol 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 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