Code for printer

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

Code for printer

Postby niels olsen » Aug 04, 2018 13:14

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: 2876
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Code for printer

Postby MrSwiss » Aug 04, 2018 15:14

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

Return to “Windows”

Who is online

Users browsing this forum: No registered users and 1 guest