system
(system)
January 7, 2015, 2:11pm
1
Hi everyone,
I need some help please.
I need to print (i.e. hardcopy) to a local printer (the printer is connected directly to my laptop and not to a network), but the program runs on the Linux environment.
I have tried the following, with no luck:
DEFINE PRINTER (REPORT1 = 1) OUTPUT ‘LPT1’
WRITE (REPORT1) ‘REPORT 1 PRINTED ON PRINTER LPT1’
Thanks
Phillip
DEFINE PRINTER is a logical definition. The physical printer must be defined via the Natural Configuration utility on the Linux host.
system
(system)
January 8, 2015, 6:24am
3
Thanks.
I defined the printer in the NATPARM (see attached screen shot), but the program still gives me a NAT1586
Presuming your printer name is correct, try changing the Method setting from TTY to GUI in the NatParms.
You said the Natural program runs on a Linux host, but the Configuration utility and error window attachments are both Windows-based. Just testing?
The NATPARM utility in Linux is character-based. Yuch.
As I recall, it is possible to point Linux print services to a device connected to a Windows machine, but it’s not a trivial set-up.