DBPRINT - REPORT TO PRINTER
"James B. Byrne via Aubit4gl-discuss" <[email protected]> Mon, 14 Jun 2021 16:52:56 -0400
| Newsgroups | gmane.comp.lang.4gl.aubit.general |
|---|---|
| Message-ID | <[email protected]> |
I have an exercise program that writes an invoice. One of the output options
writes a hard copy to a printer. However, I cannot seem to get this to work.
Everything ends up being sent to a file.
The report direction window uses this code:
CASE (print_option)
WHEN "F"
LET file_name = "inv", gr_orders.order_num USING "<<<<&",".out"
START REPORT invoice_rpt TO file_name
MESSAGE "Writing invoice to: ", file_name CLIPPED," -- please wait."
WHEN "P"
START REPORT invoice_rpt TO PRINTER
MESSAGE "Writing invoice to: Printer -- please wait."
WHEN "S"
START REPORT invoice_rpt
MESSAGE "Preparing invoice for display -- please wait."
END CASE
I have DBPRINT set:
export DBPRINT=NP4172.HAMILTON.HARTE-LYNE.CA
echo $DBPRINT
NP4172.HAMILTON.HARTE-LYNE.CA
lpstat -p NP4172.HAMILTON.HARTE-LYNE.CA
printer NP4172.HAMILTON.HARTE-LYNE.CA is idle. enabled since Mon Jun 14
14:15:06 2021
What else am I supposed to set or specify, and where?
Thanks.
--
*** e-Mail is NOT a SECURE channel ***
Do NOT transmit sensitive data via e-Mail
Unencrypted messages have no legal claim to privacy
Do NOT open attachments nor follow links sent by e-Mail
James B. Byrne mailto:[email protected]
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3