You are on page 1of 4

When you are having printing problems, you should try to print from the

operating system, where applicable, as well as from other applications in order


to determine where the problem lies. To determine whether printing from the
operating system works, you can use a simple test such as the following, which
shows how to print to a file from FoxPro. To run this test, issue the following
commands in the Command window:

SET EXCLUSIVE OFF


SET PRINTER TO junk.txt
SET PRINTER ON
LIST STATUS TO PRINTER NOCONSOLE
SET PRINTER OFF
SET PRINTER TO
MODIFY FILE junk.txt

To Print from DOS to USB Printer, u have to install MS Loopback Adapter.


After installing,
Configure the Adapter.
Remember, loopback adapter is a virtual network adapter and can be
configured the same as a regular network card. Set the adapter to have a
static IP address, Share the printer and capture the printer port. Now open
EDIT, and type the following :
@echo of
net use * /delete
net use LPT1: \\<Computer Name>\<Printersharename> /PERSISTENT:YES
and save the file as .bat extension.
NOTE: This guide for network printing.
If u want to print as a local printer, then.use Control Panel for DOS from the
Starter CD of printer driver !
Before installing Control Panel, make sure the printer is set up and turned on.
1.Insert Starter CD into CD-ROM drive
2. Exit Windows to DOS and at the DOS prompt, i.e. C:\>, type the CD-ROM

drive letter followed by a colon (:) and press ENTER.


3. Type CD \DOS\DJCP , and press ENTER. This will change to the directory
containing the files for the Control Panel. (if the file not found, download from
internet)
4. Type INSTALL and then press ENTER
5. Follow On-Screen instructions to complete installation.
6. Now change the usb printer directory (say, type CD \HP1020) and press
ENTER
7. Type DJCP and press ENTER. This will start the Control Panel
8. Now select printer settings that are not available from DOS programs.
CAUTION: Printer settings that are selected from a DOS program may
override printer settings selected from the Control Panel.
IMP NOTES: DOS programs are developed independently according to
diferent standards, each DOS program requires its own printer drivers. If the
DOS application does not show a selection for the specific printer, u can go for
a substitute driver for a HP printer. U can use printer driver for DOS programs
that do not provide support for HP Deskjet printers, HP LaserJet printer drivers
can be used instead.
Another way u may download DOSPRN a small utility that may help to solve
ur problems. For download: DOSPRN HERE.
For better concept and idea, please visit DOS2USB.
Hope it helps you!
Why DOSPRN?
Nowadays, many laser and inkjet printers have powerful features but cannot print
simple text accurately. Besides, some inexpensive printers (the so-called win-printers)
can not print in text mode (dos print or dosprinter mode) at all.

DOSPRN helps to extend the life of old DOS programs. This program allows you to
print reports from a good old DOS program into new printers irrespective of their
types (Yes, USB and network printers, print-servers, and PDF-printers too!)

DOSPRN will also be useful if a DOS program is in your native language. If your
printer does not support your language in text mode, DOSPRN will be a good helper.
DOSPRN is distributed as shareware. Download it NOW and make DOS print free.

Heres what SharewarePros.com editors are saying about DOSPRN:


Sharewarepros Review "DOSPRN is a solid utility to print on the latest printers from
legacy DOS applications ... read the full Review
Heres what 3d2f.com editors are saying about DOSPRN:
"........ If you are still using a legacy DOS application that cannot be upgraded to its
Windows version and need to print from it on a modern printer with no DOS drivers,
DOSPRN will be an excellent choice affordable, flexible, easy to understand and a
breeze to install on your computer!............" See the full review >>
--

Printing to USB Printers from FoxPro 2.6


There are several solutions, depending on your configuration.
1. If you are using a shared printer on another computer, you shouldn't have a problem.
Share it from the other computer, and point to it from the FoxPro 2.6 computer.
2. To print to a USB printer on the FoxPro 2.6 computer. On Windows XP and 2000, you can
share the printer, then use a NET USE command to redirect LPT1 to the shared printer. This
is like the Novell capture sequences.

Install the printer and share it. You may need to set permissions to allow
Authenticated Users to use the printer.

Add NET USE LPT1: \\CRAIG\USBPRINTER to the logon script for the user's profile.

For help on logon scripts, look up "To assign a logon script to a profile" in XP Help.

3. To print to a USB printer on the FoxPro 2.6 computer. On Windows XP, you can use
printer pooling.

Install the USB printer on the computer.

Install a local printer on LPT1 (works best, or LPT2). Don't have XP search, but pick
the printer by brand. Let it be similar or common printer you recognize.

Now select printer properties for the new LPT1 (virtual) printer. On the ports tab, put
checks for the LPT1 (for the virtual printer) and the USB for the real printer. Now
choose Enable printer pooling. The DOS drivers will print to LPT1. Since XP pools the
ports, the output will then be directed to the USB printer.

4. Or try the DOS2USB program available at:


http://www.dos2usb.com/order.htm
I've had one report that this works great, but I haven't tried it myself. As always,
testthoroughly in a non-production environment.
Good luck!

You might also like