2. Once installed you will need to go to the DOSBox config file and set up as following:
# printer: Enable printer emulation.
# dpi: Resolution of printer (default 360).
# width: Width of paper in 1/10 inch (default 85 = 8.5'').
# height: Height of paper in 1/10 inch (default 110 = 11.0'').
# printoutput: Output method for finished pages:
# png : Creates PNG images (default)
# ps : Creates Postscript
# bmp : Creates BMP images (very huge files, not recommend)
# printer : Send to an actual printer (Print dialog will appear)
# multipage: Adds all pages to one Postscript file or printer job until CTRL-F2 is pressed.
# docpath: The path where the output files are stored.
# timeout: (in milliseconds) if nonzero: the time the page will
# be ejected automatically after when no more data
# arrives at the printer.
# parallel1: parallel1-3 -- set type of device connected to lpt port.
# Can be:
# reallpt (direct parallel port passthrough using Porttalk),
# file (records data to a file or passes it to a device),
# printer (virtual dot-matrix printer, see [printer] section)
# Additional parameters must be in the same line in the form of
# for reallpt:
# realbase (the base address of your real parallel port).
# Default: 378
# ecpbase (base address of the ECP registers, optional).
# Linux: realport (the parallel port device i.e. /dev/parport0).
# for file:
# dev:<devname> (i.e. dev:lpt1) to forward data to a device,
# or append:<file> appends data to the specified file.
# Without the above parameters data is written to files in the capture dir.
# Additional parameters: timeout:<milliseconds> = how long to wait before
# closing the file on inactivity (default:500), addFF to add a formfeed when
# closing, addLF to add a linefeed if the app doesn't, cp:<codepage number>
# to perform codepage translation, i.e. cp:437
# for printer:
# printer still has it's own configuration section above.
# parallel2: see parallel1
# parallel3: see parallel1
Hello. I tried this solution on three computers with different printers, and I get the same result everytime - I get the print task in printers tasks to print, but the task is small and nothing prints. It just disappears after few seconds as it gets end of the file or finds it´s blank task. Can anybody help how to set the output session and printing correctly please?
I use Samsung SCX 4600, and some HPs (for example 1018 here at home). All those get the print task, but HPs are idling on it, while Samsung deletes/prints it blank in a second. I can set the dosbox many ways, with different results, but never have full success.
1) Print task not printed (also task too small as described)
2)Print task divided in many files/pages, printer prints just one column of text on each paper. Must stop the printer or rainforests are gone..
3)I can put LPT output into a file, and pick it externally > print immediately, but I get bad codepage/unwanted letters in the output file (txt).
What program do you use to print?
If the program prints in a printer specific code, the printer you use will need to support that.
f.e.. HP used PCL code, your printer now has to support that as well (PCL3 or PCL5)
PCLGUI is not compatible
Don´t know man, just custom accounting (invoices, bills) program for my small company. I solved it another way. Found very good program called winprint, which installed itself automatically on the dosbox/my program, so I can choos it as a printer. It makes external file from the print command, and also can be set to pick the file immediately and print it. It is not clean solution, but works. So it´s propably done for me. Maybe I´ll later just play with the dosbox and printing my way, but nothing really "needed".
Thank you guys anyway.
I know from the experience that if your printings are showing 'strange' characters it is drivers problem. In my company I use 'HP LaserJet 4L' driver for all HP printers that I print from DosBox.
May be worth giving a try for one of your HP printers.
And just to clarify first you have to install your HP printer on LPT1 port on your PC with HP LaserJet 4L driver and name it as LPT1, then use command prompt: "net use LPT1: \\network-path-to-your-printer /persistent:yes"
Before that please make sure that you don't have LPT1 printer installed on your PC and that you dont have physical LPT1 port you your PC (If you have one you have to disable it in Device Manager)