How do I do that?
DOS editors like Dos Edit and QB are looking for LPT1: but the printer is on a USB port. Years ago I used a MODE command to map an LPT port to a serial (COM) port, but how do I map to a USB port so I can use my new printer with DOS programs?
Printing from a DOS App to a USB port in Windows (98 or XP)
Printing from a DOS App to a USB port in Windows (98 or XP)
--- Zim ---
--- Time flies like an arrow, but fruit flies like a banana ---
--- Time flies like an arrow, but fruit flies like a banana ---
If this don works you can print to a file then shell to notepad with /p option
This should work with any printer that works in Windows.
Code: Select all
shell "notepad /p yourprintfile.txt"
Using Notepad
Actually, this is a good solution, and one which I tried. I sent my output to a text file and opened it using Windows Notepad with the intention of printing from there.
Problem is, my program's output contained hi-bit Ascii characters for line drawing. In NotePad, these characters look like special (foreign) characters 'n stuff, but not lines. And that's the way they'd print too.
But thanks, anyway! Since the advent of Windows I try to NOT use upper Ascii graphics characters so that my files print the same from both DOS and Windows.
Note: what I actually ended up doing was installing a special "DOS Video Terminal Font" in Windows so that the line-drawing characters showed up correctly, then I printed from Notepad.
Problem is, my program's output contained hi-bit Ascii characters for line drawing. In NotePad, these characters look like special (foreign) characters 'n stuff, but not lines. And that's the way they'd print too.
But thanks, anyway! Since the advent of Windows I try to NOT use upper Ascii graphics characters so that my files print the same from both DOS and Windows.
Note: what I actually ended up doing was installing a special "DOS Video Terminal Font" in Windows so that the line-drawing characters showed up correctly, then I printed from Notepad.
--- Zim ---
--- Time flies like an arrow, but fruit flies like a banana ---
--- Time flies like an arrow, but fruit flies like a banana ---
Re: Using Notepad
I had a similar problem years ago. Solutions:Zim wrote:......
Problem is, my program's output contained hi-bit Ascii characters for line drawing. In NotePad, these characters look like special (foreign) characters 'n stuff, but not lines. And that's the way they'd print too.
......
1) On an option or switch in your program, strip the hi-bit on characters to be output.
2) Write a simple little program which inputs the text, strips the hi-bit of each character, and writes to a temp output file. This is what I ended up doing.
*****