Re: DBPRINT - REPORT TO PRINTER

Mike Aubury <[email protected]> Wed, 16 Jun 2021 08:49:58 +0100
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WGgF9awcvdSzV6jyHfJ5dxnyOhr9KJV+Gw9kUHt82tLaQ@mail.gmail.com>
Looking at the code - if you START REPORT .. TO PRINTER
it effectively does a START REPORT TO PIPE fgl_getenv("DBPRINT")

Do you have an A4GL_DBPRINT set overriding your DBPRINT ?
Have you exported your DBPRINT ?
If you run

main
DISPLAY fgl_getenv("DBPRINT")
end main


what do you get ?

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, 15 Jun 2021 at 22:02, James B. Byrne via Aubit4gl-discuss <
[email protected]> wrote:

> What, exactly, is the DBPRINT env supposed to contain?  The Aubit4gl manual
> says this:
>
> DBPRINT PRINT/RUNTIME/REPORT
> Printing command Name of command to use to pass report out-
> put when executing reports defines as START REPORT ... TO
> PRINTER
>
>
> I have tried setting this variable to different printers (np4174, np4172),
> but
> the output always goes to np4172 which is the system default printer.
>
> DBPRINT='np4173'
>
> I have tried setting it to an enscript command (
>
> DBPRINT='enscript -B -d"np4174" --font=DejaVuSansMono@12
> --download-font=DejaVuSansMono --margins=18:18:18:18'
>
> And the report still goes to np4172.
>
> Additionally, all I ever see on the report that is printed on np4172 is
> the top
> line.  The rest of the page is blank.
>
> If I print to a file and then pass that file to the enscript command given
> above then the report is printed properly on the selected printer.
>
> How is this supposed to work?
>
> --
> ***          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
>
>
>
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss