Discussion Locked

Slow DOS printing from Windows program

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have a Windows program that prints through DOS to an Okidata ML395 dot-matrix printer (Epson LP emulation) on LPT1. An Okidata laser printer, using a Windows driver, was connected to a second LPT board.

After the computer was hit by lightning, we started using an identical computer (except for the second LPT board). The Okidata printed fast. Since we didn't know the laster printer had also been hit by lightning, we installed the printer driver for the laser onto this computer using LPT1, setting the default printer to the Okidata 395, which immediately started printing slow, despite efforts to fix the problem.

The repaired computer was returned with a mirror copy of the original hard drive on the new drive. All settings shouldhave been the same. However, that computer also prints slow to the 395, even though the new second printer--an HP inkjet--is installed on the second LPT port.

We have tried everything: uninstalling and reinstalling the Okidata 395 driver, removing the LPT port, changing settings on the Okidata 395 driver, using different drivers, setting ECP in BIOS, etc.

We can set this program (via the registry) to use the Windows driver, which speeds things up, but the result is the printer doesn't recognize the size of the paper, the proper form tear-off, and the top-of-form command which resets the paper to the top of form.

We can set almost all of these parameters in the Windows driver, but the top-of-form command must be passed via a code. Since this printer prints receipts for customers, it becomes an aggravation to have to manually return the paper to top-of-form.

Neither Okidata, the software company, nor Microsoft's web site has an answer. The problem seems to revolve aroundhow a Windows program prints through DOS--and what driver it is using when it does this, as well as can any parameters be set in the system to make the driver print faster?

5 replies

by gazza-sa

Try This
remove all printer drivers from control panel
remove all lpt ports from device manager
reboot into CMOS and disable onboard LTP port
reboot into windows & complete add new hardware wizard
reboot into CMOS and re-enable LPT port
rebootinto windows & complete another add new hardware wizard
reinstall printers to their correct ports

hope this helps

by habco

Thank you very much for answering so quickly. Your suggestion was very good. I wish I could say that it solved our problem, but it didn't.

After following the instructions and finding that the program still prints slow, I deleted all printer drivers from Windows and tried printing from the program again. It printed without any drivers loaded (still slow, though). Then I went into a DOS box and tried a copy /b (filename) lpt1:; the printer almost flew as it printed the file that had been selected.

So I think the printer can probably be ruled out, as well as the Windows drivers. Printing from a DOS box also works perfectly; could it be the interaction of DOS printing from Windows? But if so, what caused it to fail so suddenly when it was working?

If you have any other suggestions, we would greatly appreciate them. Your answer really was excellent, and it will be kept in a "Help" file for future reference should we have problems with drivers and lpt ports. Thanks very much!

by guruofdos

In the advanced printer settings....Port Settings dialogue, try selecting 'print directly to port'.....speeds up Dos printing from Windows.....DOS cannot use EMF or other spooling formats, so Windows has to convert the spooled file back. Also......get rid of check port status. As well as printing, windows and dos have to pass information via a memory data segment and this takes time.

by habco

Thank you for your answer. I'm sorry to take so long to get back to you.

Your suggestion was excellent also. How I wish that was the problem! However, before we put in this request for help, we had already tried changing those settings; the changes didn't make any difference. I wish they had.

Actually, every program that uses the Windows driver prints fine. Dos prints quickly also. It's only this one Windows program that prints directly to the LPT port that is the problem. The software company says that the program goes out and "grabs" the LPT port when it prints.

Before this problem occurred, the printer would print immediately and control would return to the program immediately. Now there is a delay both in printing and in returning to the program, and the printer itself prints slow (only from this program).

If you have any other ideas, we would greatly appreciate them. Thanks, and I hope we hear from you again.

by guruofdos

In the advanced printer settings....Port Settings dialogue, try selecting 'print directly to port'.....speeds up Dos printing from Windows.....DOS cannot use EMF or other spooling formats, so Windows has to convert the spooled file back. Also......get rid of check port status. As well as printing, windows and dos have to pass information via a memory data segment and this takes time.

This discussion is closed to new replies.