1. Printing to usb printer
- Posted by George Walters <gwalters at sc.rr.com> Feb 03, 2007
- 591 views
Basically how do you print to one of these directly w/o using the win32 routines. This is in the docs "CON" - the console (screen) "AUX" - the serial auxiliary port "COM1" - serial port 1 "COM2" - serial port 2 "PRN" - the printer on the parallel port "NUL" - a non-existent device that accepts and discards output but I don't see how to print to a USB printer. Maybe "USB"??
2. Re: Printing to usb printer
- Posted by irv mullins <irvm at ellijay.com> Feb 03, 2007
- 578 views
George: I don't think you can print directly - modern printers don't have the ability to lay out the dots in the right places without software intervention. You need to ; thru the Windows drivers. Look at the website below for a possible solution: http://www.dos2usb.com/
3. Re: Printing to usb printer
- Posted by George Walters <gwalters at sc.rr.com> Feb 03, 2007
- 562 views
This is a bar code printer which takes ascii character commands, so it is not a bit map type of thing that a driver creates. I could put it on a parallel port, but I would also like to print to other serial ports other than com1, com2, etc...like a tcp port that goes to a print server.
4. Re: Printing to usb printer
- Posted by jacques deschĂȘnes <desja at globetrotter.net> Feb 04, 2007
- 601 views
George, those device names are there for legacy reason, There is no "USB" as there was no USB at DOS time. To answer your question, it is easy to write to one of those DOS device from euphoria. Simply open it like a file. exemple:
atom fh fh = open("CON","w") puts(fh, "hello world\n")
will print "hello world to the console. The same is true for "PRN", "COM1", etc... George Walters wrote: > > > Basically how do you print to one of these directly w/o using the win32 > routines. This is in the docs > > "CON" - the console (screen) > "AUX" - the serial auxiliary port > "COM1" - serial port 1 > "COM2" - serial port 2 > "PRN" - the printer on the parallel port > "NUL" - a non-existent device that accepts and discards output > > but I don't see how to print to a USB printer. Maybe "USB"??