Printing & clipboard-exchange - kludgy workaround for DOSBox under Windows (revived)

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

Printing & clipboard-exchange - kludgy workaround for DOSBox under Windows (revived)

Postby emendelson » 2017-4-20 @ 13:09

A locked thread about this workaround may be found here, with most of the relevant information in the first post:

viewtopic.php?t=32697

Thanks to changes in DropBox, this new download address should be used instead of the one in the first post (the address won't work after DropBox shuts down its Public folder feature):

https://www.dropbox.com/s/h8e7qskkqr0wt ... r.zip?dl=1

Also, one added detail:

When setting this method up, if you're using it with a dosbox.conf that loads a program and then exits DOSBox, the necessary drive assignment (added by DOSBoxPrinter.exe) won't have any effect. If that happens, add this line to your DOSBox.conf, somewhere in autoexec.bat, but before your program launches:

Code: Select all
mount P Printout


No need to add a full path; no need for colons or backslashes, just what you see there.

I hope this method is still useful. The original thread got blocked because it drifted off into irrelevant questions that had already been answered in other threads, and the person who asked the irrelevant questions simply wouldn't stop asking them.
Last edited by emendelson on 2017-4-27 @ 16:54, edited 1 time in total.
emendelson
Oldbie
 
Posts: 635
Joined: 2010-2-14 @ 02:00

Re: Printing & clipboard-exchange - kludgy workaround for DOSBox under Windows (revived)

Postby emendelson » 2017-4-27 @ 13:31

I've now enhanced this (in an updated download) to work more smoothly with Windows 3.1. Here's what you need to do:

1. As shown in the previous post, add the "mount P Printout" line to your DOSBox.conf if you use the conf file to launch Windows in DOSBox.

2. In your Windows 3.11 setup, edit win.ini so that the [ports] section includes this line:

Code: Select all
P:\OUTPUT.PRN=


3. Use DOSBoxPrinter.exe to start DOSBox.

4. In DOSBox, start Windows 3.1, use the Control Panel to select a printer; choose any LaserJet or PostScript printer, and use the "Connect" button to set the output to "P:\OUTPUT.PRN".

5. Print something from a Windows 3.1 program. If in fact you chose a LaserJet or PostScript printer driver in the Windows 3.11 Control Panel, the output will be printed to your default Windows XP/Vista/7/8/10 printer, whatever kind of printer it might be.
emendelson
Oldbie
 
Posts: 635
Joined: 2010-2-14 @ 02:00


Return to DOSBox Development

Who is online

Users browsing this forum: No registered users and 2 guests