Print to a Laser Printer connected via TCP-IP

For issues with communication ports, protocols, etc.
Post Reply
cimux
Posts: 4
Joined: Dec 11, 2005 8:06
Location: Italy

Print to a Laser Printer connected via TCP-IP

Post by cimux »

I tried to use:

Code: Select all

OPEN LPT "TCPPRINTER" FOR APPEND AS 1
PRINT #1, "AAAAAAAAA"
CLOSE
but it does nothing (TCPPRINTER is a Xerox printer connected using a TCP port).

I also tried:

Code: Select all

OPEN LPT "FILEPRINTER" FOR APPEND AS 1
PRINT #1, "AAAAAAAAA"
CLOSE
no file is created (FILEPPRINTER is Xerox printer using a C:\OUTPUT.PRN port)

could someone help?
v1ctor
Site Admin
Posts: 3804
Joined: May 27, 2005 8:08
Location: SP / Bra[s]il
Contact:

Post by v1ctor »

See http://cvs.sourceforge.net/viewcvs.py/f ... &view=auto, The extended syntax should be:

OPEN LPT "LPT:TCPPRINTER" FOR APPEND AS #1

Untested though, my printer is broken at the moment.
Post Reply