DB PRINTOPT

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Used to define the default system printing operation options


See Also

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


Description

The DB_PRINTOPT environment variable is used to define the default system printing operation options in conjunction with the DB_PRINT environment variable. By default, DB_PRINT is set to the print.unix script:

################################################################
#
# print.unix: Recital system-wide print file
#
# Modify this shellscript to handle site-specific printers etc.
#
#################################################################
lp ${DB_PRINTOPT} $1 > /dev/null 2>&1
tmp=`echo $1 | grep -c .tmp`
if [ $tmp -ne 0 ]
then
  rm $1
fi

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.

DB_PRINTOPT="-onobanner -c"

Example

putenv([DB_PRINTOPT],[-dmyprinter])
set printer to \\spooler
list status to print
set printer to

Products

Recital, Recital Server