VOGONS


Printing (sigh!)

Topic actions

First post, by Paolo_R

User metadata
Rank Newbie
Rank
Newbie

I'm new to DOSBOX but I realise this topic has been raised many times but I've RTFM, searched the forum topics and downloaded DOSBOX Megabuild 5, but I'm still not sure how to set up printing.

I'm running DOSBOX on Win XP Pro. The DOS software I'm running has options to print to LPT1, LPT2, LPT3, COM1 and COM2. My host laptop clearly doesn't have any serial or parallel ports - the only option to attach a printer is via a USB port.

If I, say, select LPT1 as the printer port in my DOS software and add 'parallel1=file dev:LPT1'to the configuration file, will this be sufficient to facilitate printing when my printer is attached to the laptop's USB port?

It's not altogether clear to me whether I also need to install the PortTalk driver.

I hope this post doesn't bring a shower of RTFMs on my head!

Thanks

Reply 1 of 26, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

You'll probably also need to map your printer to LPT1 using the Windows networking as these printers don't simulate a LPT1.

1+1=10

Reply 2 of 26, by Paolo_R

User metadata
Rank Newbie
Rank
Newbie

Thanks for that. What I did was open the Properties for my printer in XP Control Panel. In the Port tab, I enabled Printer Pooling and checked LPT1 (it already had USB Port checked.)

I've added 'parallel1=file dev:LPT1' to the config file. When I try and print (via LPT1) from the DOS application I get a 'Printer not ready' error message.

Is there anything else I need to do or am I on the wrong path?

Reply 3 of 26, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

I think printer pooling is used differently.

Just share your printer over the network and then issue a net use command:

net use <Port>: <Shared resource> /persistent:yes

E.g. net use LPT1: \\MyNetwork\HP /persistent:yes

Then all data from LPT1: will be redirected to your shared printer.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 4 of 26, by Paolo_R

User metadata
Rank Newbie
Rank
Newbie

Thanks. I'm not actually using a network. The printer would be a 'local' printer physically attached to the laptop computer on which I'm running DOSBOX. So I'm not sure how to proceed.

Or are we talking about setting the printer as a share? I see I can share the printer a give it a share name. For example share name = 'HP3100'

Would I then use: net use LPT1: \\HP3100 /persistent:yes ?

Reply 5 of 26, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

yes. although you probably need something like \\mycomputer\hp3100

Water flows down the stream
How to ask questions the smart way!

Reply 6 of 26, by Paolo_R

User metadata
Rank Newbie
Rank
Newbie

That's great. I'll substitute my computer name and see what happens.

Thanks

Reply 7 of 26, by Paolo_R

User metadata
Rank Newbie
Rank
Newbie

Here's what happened.

Set up printer share as HP3100

From 'My Computer' -> Properties -> Computer name -> Full computer name: HP_Laptop

In CMD window: net use LPT1:\\HP_Laptop\HP3100 /persistent:yes

results in:

"System error 67 has occurred. The network name cannot be found"

Not sure what to do next! ;-(

Reply 8 of 26, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

this is no dosbox problem.
maybe google or so

Water flows down the stream
How to ask questions the smart way!

Reply 9 of 26, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

Check your network name by right-clicking My PC -> Properties (if you are running XP).

Then prefix that name before the shared resource name

net use lpt1: <blank space> \\MyNet\HP <blank space> /persistent:yes

Maybe Googling on this will shed any additional light...

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 10 of 26, by Paolo_R

User metadata
Rank Newbie
Rank
Newbie

It appears that the problem was an unneeded colon.

"net use lpt1 \\hp_laptop\hp3100 /persistent:yes" did the trick.

I had previously had "net use lpt1: \\hp_laptop\hp3100 /persistent:yes"

So this worked for me:

(a) installed DOSBOX Megabuild 5
(b) added "parallel1=file dev:LPT1" to the config file
(c) issued "net use lpt1 \\hp_laptop\hp3100 /persistent:yes" in CMD window before launching DOSBOX

Thanks to all those who helped.

Reply 11 of 26, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

Glad to hear it.

Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
8 GB GeForce GTX 1070 G1 Gaming (Gigabyte)

Reply 12 of 26, by artmaker

User metadata
Rank Newbie
Rank
Newbie

I have been using (and enjoying) DOSBox 0.73 since earlier this year on My Windows 7 64-bit laptop. I have not tried printing from DOSBox yet, and based on the discussion, I have a couple of questions:

(1) Where do you put the following line in the config file:

parallel1=file dev:LPT1

Is this to be placed in the [autoexec] section, or..?

(2) Is "DOSBOX Megabuild 5" an update from my version of DOSBox, and is it necessary before (1) would work?

Reply 13 of 26, by TeaRex

User metadata
Rank Member
Rank
Member

h-a-l's DOSBox Megabuild is an extended Version of DOSBox that includes some more experimental features that don't exist in "mainline" DOSBox. One of these features is parallel port emulation.

So yes you need to download and run the Megabuild. Its config file has a section dedicated to parallel printing which also doesn't exist in mainline DOSBox config files.

tearex

Reply 14 of 26, by miami

User metadata
Rank Newbie
Rank
Newbie
Paolo_R wrote:
So this worked for me: (a) installed DOSBOX Megabuild 5 (b) added "parallel1=file dev:LPT1" to the config file (c) issued "net u […]
Show full quote

So this worked for me:
(a) installed DOSBOX Megabuild 5
(b) added "parallel1=file dev:LPT1" to the config file
(c) issued "net use lpt1 \\hp_laptop\hp3100 /persistent:yes" in CMD window before launching DOSBOX

Hi Paolo_R, thank you for your help
i have the same problem and will be test your solution next week, i have a question :
if i stop/ start my PC
does i must run always CMD window before launching DOSBOX : net use lpt1 \\hp_laptop\hp3100 /persistent:yes

Reply 15 of 26, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

/persistent:yes means it will remember this connection.

1+1=10

Reply 16 of 26, by miami

User metadata
Rank Newbie
Rank
Newbie
h-a-l-9000 wrote:

/persistent:yes means it will remember this connection.

yes, it is what i think just after send the post ..
thank you h-a-l-9000 !

do you think it is also possible to print to port IP directly ?

Reply 17 of 26, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Should be possible with a nullmodem COM port

1+1=10

Reply 18 of 26, by tomsan

User metadata
Rank Newbie
Rank
Newbie

Hello..... have also problem with an old DOS progam. Running well under XP (just had to pur "files=120" up in ntconfig), printers are also installed:

net use lpt2 \\srv1\lp4 /persistent:yes
net use lpt3 \\srv1\lp3 /persistent:yes

But not running under Win7 (printers are installed as mentioned above)

Have already installed the Megabuild6. But what exactly put in the confirg file of the Megabuilt?
Programm is running will, but does not find any printers (...which have not been "installed" in DOSBox)

Thanks for your help!
Tomsan

Reply 19 of 26, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

parallel1=file dev:LPT2

1+1=10