DBPRINT

 

Specifies the printing device/software to be used in classic 4gl reports.

 

Syntax:

 

DBPRINT={any string}

 

Usage and examples:

 

In classic 4 gl reports, you can use the START REPORT TO clause to specify output destination. Among other option you can send the report to any printing device or software by using the PRINTER keyword:

 

START REPORT ord_rep TO PRINTER

 

or

 

START REPORT ord_rep TO OUTPUT "PRINTER"

 

In this case, the report will be sent to the printer specified in the DBPRINT environment variable:

 

DBPRINT=Canon MF4800 LT XPS

DBPRINT=Microsoft Print to PDF

 

DBPRINT=/dev/lpr (for the default system printer)

DBPRINT=Canon MF4800 LT XPS

 

If DBPRINT is not defined, the default system printer is used for reporting.

 

DBPRINT applies at runtime, so it must be set in inet.env.

 

 

Related articles:

Classic 4gl reports

PRINTER keyword