Question

Printing in DosBox 0.65

Asked by: vbeginner

Hi,  is it possilbe to print in dosbox0.65 using lpt port.  I have researched alot but still not good.. can anybody help me please.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-04-14 at 01:32:36ID22511166
Tags

dosbox

,

print

Topics

Printers

,

MS DOS

,

Windows XP Operating System

Participating Experts
2
Points
0
Comments
33

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. USB to LPT?
    hi =) would be someone kind and try to help me - i've to use a DOS application in win xp home and my printer has got only usb port. my application need lpt (because it is a DOS app). how can i print on this way without using a printing to file? thanx a lot! linuxak
  2. Capturing a page printed to LPT
    Hi, I've got an old DOS program, that prints a page to LPT. I want to capture this page, be able to edit it (either with a text or with a graphic editor - I don't mind) and print it _losless_ later. OS is your choice of DOS 6, Windows 98 or Windows 2k.
  3. Printing from LPT on an USB printer
    Hello Does anyone know how to print on an USB printer using LPT port (or COM)? Are there any connectors enabling this? I believe this is not possible. I know that there is no problem with doing it the other way (print via USB on a LPT printer using a hardware connector). I wa...
  4. LPT printer printing to network printer
    I have two printers, one connected parallel directly to my computer and another connected to a print server on the network. When I print to the local printer it prints to the network printer. If I run a net use fromt he command prompt it says that the network printer is on ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: qz8dswPosted on 2007-04-14 at 01:50:43ID: 18910208

Going by here not without a new build. (Not of DosBox itself, but incorperating some patches)

http://vogons.zetafleet.com/viewtopic.php?t=9306=

I'd try the first one listed in the heading "The following CVS builds contain additional fixes and/or features that are not officially part of DOSBox." about 1/4 of the way down the page.

 

by: vbeginnerPosted on 2007-04-14 at 20:39:42ID: 18912769

how do we encorporate this patches.. i had a hardtime on this...

 

by: qz8dswPosted on 2007-04-14 at 21:00:23ID: 18912795

Thats where you need to re-compile the kernal.
You'll need C++ or the such.
Thats why I suggested you tried ykhwong's (Windows and Linux builds available)
That one there already has patches compiled into the package so you won't need to apply the patch and re-compile the kernal.
It has "Virtual Printer support" which I'm assuming will allow it to either print to LPT1 from within it's own virtual shell or it will print to a physical file you can print later.

 

by: vbeginnerPosted on 2007-04-16 at 18:11:30ID: 18921722

I have downloaded the said software.. but still i cannot pring. I am using clipper applications but cannot print.. can you please help me...

 

by: qz8dswPosted on 2007-04-17 at 19:16:34ID: 18928903

Sorry I had to download DOSBOX as I don't run it.

In the dosbox directory open the dosbox.conf in notepad and look for the [printer] section.

Change these 3 lines (If they are not set like this already) to what is below
printer=true
printoutput=printer
multipage=true
A note on multipage "multipage -- Adds all pages to one Postscript file or printer job until CTRL-F2 is pressed."


In the [speaker] section change the disney setting
disney=false

Then when you print from Dosbox the first time it pops up the windows printer dialog.
Choose your printer, then print all you want.

When you have finished printing do a CTRL-F2 and it will spool off to the printer.

The only other way would be to get a patch and patch your version of Dosbox.
For that you'd need Visual C++ for a start. (To apply the patch and re-compile Dosbox)

Terry

 

by: qz8dswPosted on 2007-04-17 at 19:17:53ID: 18928912

Oh, with that multipage to seperate print jobs you need to do a CTRL-F2 after each "print job"

Terry

 

by: qz8dswPosted on 2007-04-17 at 20:01:51ID: 18929175

Another possibility is in Clipper change the port it prints to from LPT1 to PRN if it supports doing it.

 

by: qz8dswPosted on 2007-04-17 at 20:34:10ID: 18929254

The PRN option if clipper can do it prints to your windows default printer no questions asked and supports graphics.
the LPT patch only seems to handle text (A quick test, like copy fred.jpg lpt1 just didn't produce anything printable.).

 

by: vbeginnerPosted on 2007-04-18 at 18:26:04ID: 18936286

the commands are working.. but the problem is that. the printer did not start... no page was printer...

 

by: vbeginnerPosted on 2007-04-18 at 18:30:37ID: 18936302

but the commands are working... not just like before that the program did not respond.. its just that the printer did not print... could you please help me a little futher please.

 

by: qz8dswPosted on 2007-04-18 at 19:25:08ID: 18936491

You have to make the changes to the dosbox.conf I mentioned.
You are striking an incompatability with the disney part in the [speaker] section.
disney=true
changes to
disney=false

Until I made that change it would accept the command to print to LPT1 but do nothing.
And don't forget to do a CTRL-F2 after you have printed, (Otherwise it will once again not print anything)
All the changes I mentioned above have to be made and you using CTRL-F2 after it's printed is needed to make this work.

 

by: vbeginnerPosted on 2007-04-18 at 19:46:35ID: 18936541

i have change the following settings.. but till no good.

 

by: vbeginnerPosted on 2007-04-18 at 19:49:18ID: 18936554

it didnot display printerdiaglog and it did not create a ps in the directory... were could it possibly went wrong

 

by: qz8dswPosted on 2007-04-18 at 20:00:05ID: 18936591

Can you copy and paste the [printer] and [speaker] sections into here please.
The PS not showing up is normal if you have printoutput=printer.
That will not create Postscript, it outputs directly to the printer.

Also these changes will only work with that version of DOSBOX I told you to download.

Terry

 

by: vbeginnerPosted on 2007-04-18 at 20:13:43ID: 18936628

[printer]
# printer -- Enable printer emulation. (turn off disney)
# 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 in the DOSBOX directory
#           ps      : Creates Postscript documents in the DOSBOX directory (default)
#           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.

printer=true
dpi=360
width=85
height=110
printoutput=printer
multipage=true

[speaker]
# pcspeaker -- Enable PC-Speaker emulation.
# pcrate -- Sample rate of the PC-Speaker sound generation.
# tandy -- Enable Tandy Sound System emulation (off,on,auto).
#          For auto Tandysound emulation is present only if machine is set to tandy.
# tandyrate -- Sample rate of the Tandy 3-Voice generation.
# disney -- Enable Disney Sound Source emulation.
# innova -- Enable Innovation SSI-2001 emulation.
# innovabase -- Base port for Innovation SSI-2001 emulation.

pcspeaker=true
pcrate=22050
tandy=auto
tandyrate=22050
disney=false



 

by: qz8dswPosted on 2007-04-18 at 20:32:55ID: 18936670

OK, that looks fine and is the exact same as mine.
To test it
Restart dosbox
In the dosbox shell type in dir > lpt1.
A print dialog should pop up. choose your printer, then when it goes back to DOSBOX do a CTRL-F2
In the dosbox Status window you should see a SHELL:Redirect output to lpt1.

From that point in time onwards you will not get the popup for which printer. It remembers your choice until Dosbox is re-started.
You just have to CTRL-F2 after each print job.

Watch out you do not have a keyboard like mine, with an "f-lock" key. (For changing the functionality of the F1-F12 keys)  If you do have an F-Lock key try hitting it and trying CTRL-F2 again.

Tell me if you don't get the print dialog doing this (But not sure what I can do about it).
I'll try the Postscript option to see what I get.

Terry

 

by: vbeginnerPosted on 2007-04-18 at 20:40:47ID: 18936693

yah the print dialog appeard. but still it did not print... it printed the contents of the directory.. put when i started my clipper applications it did not print...

 

by: qz8dswPosted on 2007-04-18 at 20:43:41ID: 18936699

Yup, the print dialog will appear the first time you print in dosbox.
Then all your printing goes to that printer for that session of dosbox.

You have to hold down the CTRL key and hit the F2 key while you are still in DOSBOX to get it to send it to the printer.

 

by: vbeginnerPosted on 2007-04-18 at 20:53:01ID: 18936722

still it did not print... i hold the CTRL+F2.. upon printing the application it did not went to lpt1... i having really a hardtime....

 

by: qz8dswPosted on 2007-04-18 at 21:11:34ID: 18936766

Well if you don't have to do anything like I do to make the F keys work properly (My F Lock key) or on a Laptop sometimes theres sometimes a key you need to hold cown to make the F keys work properly.

If none of those holds true, then your clipper application must be using it for itself.
To test whether it's the keyboard or application do that same test of restarting dosbox, dir > lpt1 in the dosbox shell, then in the same dosbox shell do a CTRL-F2.
It should print.

 

by: qz8dswPosted on 2007-04-18 at 22:23:41ID: 18936908

Sorry, to clarify,

To test whether it's the keyboard or application do that same test of restarting dosbox, dir > lpt1 in the dosbox shell, Choose your printer then in the same dosbox shell do a CTRL-F2.

 

by: vbeginnerPosted on 2007-04-20 at 18:50:58ID: 18950482

it still thesame.. i have restarted the dosbox.. is there any versions of dosbox that supports printing?

 

by: qz8dswPosted on 2007-04-20 at 19:17:38ID: 18950530

No.
Only addons to try and make printing work, then re-compiling the kernal.  (The kernal is the main dosbox.exe)
Did the CTRL-F2 work from just a shell and doing a dir > lpt1 then a CTRL-F2?
If it didn't are you doing this on a laptop or a keyboard like a Microsoft Intellitype?

You have to remember DOSBOX was made for gaming support in older DOS games that didn't run properly in new machines. I don't think the person who originally devised the program thought it would ever be used for applications.
(Hence the not putting in LPT1 support). So this is where other people have looked at the code and devised their own ways to change the code to enable LPT1 redirection to windows.
It works for me, but I'm not running your application. So now is where you need someone to change the source to suit your enviroment and recompile it unless the answers to my keyboard/laptop question above is yes.

Terry

 

by: vbeginnerPosted on 2007-04-20 at 20:53:00ID: 18950725

I don't think keyboard is the problem. because my program needs to press F10 when printing.. and yes in did it functioned. is there other softwares that supports this kind of program... old msdos programs will still function in windows xp?

 

by: qz8dswPosted on 2007-04-20 at 21:47:53ID: 18950812

OK, so it did print just in the DOSBOX shell, the F keys work fine, just not CTRL-F2 in your clipper application.
That would indicate to me that your clipper program is using CTRL-F2 for something for itself and not letting DOSBOX see the keystrokes.

One thing I'd look at is if you can change the key your application uses for CTRL-F2 to something else.
I don't know what your application would be using CTRL-F2 for, but if theres some sort of configuration that says use this key for this function then find CTRL-F2 in that list and if you can change it.
One last thing to try (A work around)
Try printing in your application, Hopefully it will pop up and ask you for a printer, then exit the application BUT before you quit DOSBOX try a CTRL-F2.
(I'm assuming your application does not close DOSBOX when you exit it)

To answer your other questions, DOSBOX was made just because of incompatabilities (Mainly speed) with running older programs on new computers. The games ran just WAY too fast to play.
I'm assuming someone found a problem some time in the past and thats why your running it under DOSBOX now.
You could try running it under XP. Just create a shortcut to it on your desktop, right click on the shortcut and select properties.
Then under the compatability tab check/tick "run this program in compatability mode for" and I'd suggest Windows 95. It's the closest to the old dos days.
Theres no guarantee it will work though.

Terry

 

by: vbeginnerPosted on 2007-04-24 at 00:05:33ID: 18963807

no it did not print... still the same

 

by: qz8dswPosted on 2007-04-24 at 01:32:40ID: 18964036

SIGH!!!!!  (I didn't expect compatability mode to work anyway)
I think if you have tried everything in my last post (The printing from your application and exiting from it then trying the CTRL-F2 to "finish" the job) then I'm running out of ideas myself.
We know dosbox itself is re-directing the output because you can do the diagnostics of a DIR > LPT1 and then a CTRL-F2 and it prints.
It seems like this will require re-configuring the application OR re-compiling the source of DOSBOX to use a new keystroke.
I don't know how configurable your application is, but if you have anyone who knows C++ and can compile it then I think this can still be done.

Terry

 

by: vbeginnerPosted on 2007-05-04 at 19:13:49ID: 19034968

where can we find the full source code of this? i really need your help...

 

by: qz8dswPosted on 2007-05-12 at 14:18:53ID: 19079534

Sorry, I was away for 2 weeks on a course with no net access.

To be honest re-compiling DOSBOX from source for LPT support can be a pain.
I've just spent 1/2 a day on it with various things missing but I got it working, but unless you have someone who can understand C++ WELL and support the changes in DOSBOX I'd not recommend it as there is no fall back when things don't work properly (As you found with the one that did have LPT support compiled in it).

The Dosbox source is available at
http://prdownloads.sourceforge.net/dosbox/dosbox-0.70.tar.gz?download

I have just tried another option with getting access to LPT1: that seems to work on my machine.
http://vogons.zetafleet.com/viewtopic.php?t=11979

Have you tried running your DOS program under Parallels or any other Virtual machine program?
http://www.parallels.com/en/download/workstation/

Parallels is a "virtual machine" that runs on your machine. (BUT you will have to pay for it after a month)
It's like the machine inside a machine. (Same concept as DOSBOX, but with commercial support).
It fully supports running DOS applications and running them including LPT and networking support.
The LPT support is rather cool.
It supports going to either a direct windows printer OR a physical LPT port OR a physical file on your machine.
The downside of Parallels or any Virtual machine software is you have to install the Operating system. (So you have to install Windows 95 or 98 on the "virtual machine", BUT it does not affect your machine at all.)

 

by: qz8dswPosted on 2007-06-12 at 23:09:48ID: 19272395

I wouldn't delete it.
Alot of good information in this about DOSBOX and LPT support thats (personal perspective) hard to find.
The problem was it was not working for the application. We had found out DOSBOX itself did indeed re-direct to the LPT port fine which was the original question. (More than likely the keystroke for closing the print file was used by the App)

I still reckon Parallels would have worked a treat in this situation and given them a support line which DOSBOX being open source cannot offer as well.

Terry

 

by: Computer101Posted on 2007-06-17 at 09:02:32ID: 19302621

PAQed with no points refunded (of 250)

Computer101
EE Admin

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...