Code for printer

Windows specific questions.
Post Reply
niels olsen
Posts: 29
Joined: May 28, 2006 18:32
Location: denmark

Code for printer

Post by niels olsen »

When you have a printer connected to serial port then code is: OPEN "LPT1:" FOR OUTPUT AS #1. {Number may differ).
What is the similar code when interface on the cumputer is an USB?
My printer is a HP Deskjet 920c, I normally use the USB even it also has an LPT
Yours sincerely
Niels Olsen
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Code for printer

Post by MrSwiss »

Sorry, but: LPTn = Parallel-Printer-Port (nothing to do, with serial anything)
and
Yes, on USB provided, the printer supports *VCP, you are using serial comms'
to write to it ... Open Com("COMn: ...", As #x) (n = any number, x = FreeFile)
See FB-Manual, for further details.

*VCP = virtual COM port
Post Reply