1. Printing to usb printer

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"??

new topic     » topic index » view message » categorize

2. Re: Printing to usb printer

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/

new topic     » goto parent     » topic index » view message » categorize

3. Re: Printing to usb printer

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Printing to usb printer

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"??

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu