Printing in DosBox using USB printer (in command line it works)

General information and assistance with DOSBox.

Printing in DosBox using USB printer (in command line it works)

Postby poao » 2008-8-26 @ 11:40

Hi,

I have an old DOS program that I need to run under Windows XP. I tried first to run the program using windows XP own command line (Run -> cmd) but the program did not run very well (worked partially). In Dosbox the program runs perfectly fine. The only problem left for me is to be able to print from DOSBOX.

I have read a fantastic tutorial about printing from DOS programs under windows xp (http://members.shaw.ca/bsanders/printfromdos.htm). After following the tutorial I am now able to print when I start the program from windows xp command line (but some parts of the program don't work while in dosbox the work fine). The problem is that this tutorial did not help me to print from Dosbox (it's just works when I print form windows command line - when the program is running from dosbox nothing is printed).

Is there any way to fix that ?
By the way, I also tried running dos2usb and it didn't help to get the program print when running from dosbox.

Thanks
Poao
poao
Newbie
 
Posts: 3
Joined: 2008-8-26 @ 11:32

Re: Printing in DosBox using USB printer (in command line it works)

Postby MiniMax » 2008-8-26 @ 12:28

Check out h-a-l-9000's unofficial DOSBox build:
viewtopic.php?t=9306
DOSBox 0.73 ReadMe | DOSBox Wiki | DOSBox 60 seconds guide | How to ask questions
_________________
Inspiron 9400 | Core Duo T2400 @ 1.83 GHz | GeForce Go 7800 | SONY DVD+-RW DW-Q58A | Win XP Pro/SP2
User avatar
MiniMax
Moderator
 
Posts: 5109
Joined: 2004-1-18 @ 04:15
Location: Stockholm, Sweden, Europe, Earth Interests: Old games & young women

Thanks but it's nopt working

Postby poao » 2008-8-26 @ 20:08

Thanks for the quick reply...

I tried the link and it seems to be a little bit better (because now the printer is at least detected) but just before the printer starts to print dosbox crashed (many times I tried).

All combinations did not work. The most successful was the dll's combined with "Parallel Port Passthrough" (the printer was detected) but the program crashed just before printing...

Any thing I can do to fix this ?

Thanks
poao
Newbie
 
Posts: 3
Joined: 2008-8-26 @ 11:32

Re: Thanks but it's nopt working

Postby h-a-l-9000 » 2008-8-26 @ 20:14

The parallel port passthrough patch does not work with USB printers. You could try the virtual printer part instead.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4179
Joined: 2005-2-23 @ 00:14

Re: Printing in DosBox using USB printer (in command line it works)

Postby poao » 2008-8-26 @ 20:54

Thanks for your reply.

I tried the DLL's with "Mega build #3" (contain the virtual printer). Now when I try to print I don't get a message that no printer was detected (this message appeared when I used the official DosBox).
However, the printer does not print and nothing happens. After a few seconds I get a message that everything was fine (which isn't because the printer did not print anything).

Any more suggestions ?

Thanks
poao
Newbie
 
Posts: 3
Joined: 2008-8-26 @ 11:32

Re: Printing in DosBox using USB printer (in command line it works)

Postby h-a-l-9000 » 2008-8-26 @ 21:44

Did you add the fonts in the directory and set parallel1=printer? By default it will create a png file in the dosbox directory instead of printing. And maybe you ahve to press ctrl+F2 to "eject" the virtual page.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4179
Joined: 2005-2-23 @ 00:14

Re: Printing in DosBox using USB printer (in command line it works)

Postby blulb » 2009-9-01 @ 16:09

Hi,
I got a very old program that can only print on LPT1 and can only be run in DOSBox, running in cmd.exe doesnt't work. Now I downloaded your build (4.1) and set it up, corrected all settings and so on. Now when I try to print from the program (no matter whether virtual or real printer) the DOSBox says Unkown command, skipping and a smiley followed by a number. Am I doing anything wrong? The output pages only consist of a black circle in the upper left corner. The printer is connected via USB, I got no LPT-Port available. Thanks for your help.
blulb
Newbie
 
Posts: 3
Joined: 2009-9-01 @ 16:04

Re: Printing in DosBox using USB printer (in command line it works)

Postby h-a-l-9000 » 2009-9-01 @ 17:02

What if you press Ctrl+F2?

That's not a smiley but a printer control code - how does it look exactly?
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4179
Joined: 2005-2-23 @ 00:14

Re: Printing in DosBox using USB printer (in command line it works)

Postby blulb » 2009-9-01 @ 19:36

Ctrl + F2 seems to do nothing.
The DOSBox looks like: http://www.bilder-upload.eu/show.php?fi ... jB3EZN.jpg
and the output .png looks like http://www.bilder-upload.eu/show.php?fi ... Ko6T7d.png
Thanks.
blulb
Newbie
 
Posts: 3
Joined: 2009-9-01 @ 16:04

Re: Printing in DosBox using USB printer (in command line it works)

Postby h-a-l-9000 » 2009-9-01 @ 19:46

What kind of printer does that program expect? I.e. laser printers are not supported. If you have a choice use one that sounds like ESC/P.
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4179
Joined: 2005-2-23 @ 00:14

Re: Printing in DosBox using USB printer (in command line it works)

Postby blulb » 2009-9-01 @ 20:03

Wow thanks! I chose a matrix printer (:D) and now at least the output to a file works! I'm testing output to printer now but that should be no problem :)
Thanks a lot for your help!
blulb
Newbie
 
Posts: 3
Joined: 2009-9-01 @ 16:04

Re: Printing in DosBox using USB printer (in command line it works)

Postby Katherine » 2010-6-28 @ 21:44

I have no matrix printer. Is there any way for printing from the DOS BOX into USB Inkjet printer?
Katherine
Newbie
 
Posts: 2
Joined: 2010-6-28 @ 21:35

Re: Printing in DosBox using USB printer (in command line it works)

Postby Katherine » 2010-7-18 @ 22:00

I found a lot of special utilities for support printing text on the modern inkjet and laserjet printers: dos2usb, printfil (already tested), dosprn, dosprint etc.

I downloaded these utilities and evaluated them. At last I choose a dosprn ( http://www.dosprn.com ) utility for me. It printed my documents more or less correctly and it is the most inexpensive between competitors.

I'd installed "DOSBox Mega Build 5" release, adjusted DOSBOX settings for saving LPT traffic into file directly and switched DOSPRN to printing this file automatically.

It is not a magnificent but it works at me at least.
Katherine
Newbie
 
Posts: 2
Joined: 2010-6-28 @ 21:35


Return to DOSBox General

Who is online

Users browsing this forum: DosFreak and 0 guests