UNABLE to print reports on USB Printer from DOS Base Application

Posted on 2006-04-27
Last Modified: 2008-01-09
I am using a latest a Compaq Presserio NOTE Book which has no LPT Port.

I have installed a USB2LPT1 Interface Cable and  Configured it and attached a Dot matrix Printer (TVS-MSP) having a parellel port only with the cable.

The printer with above interface is working fine with
windows base application ie:WORD,EXCELL etc. but
unable to print from DOS Application(FOXPRO for DOS:FPD26) as My accounting application was developed in Foxpro for dos.

Please solve the problem without any financial investment

Question by:bkbinani
    LVL 53

    Expert Comment

    by:Will Szymkowski
    Hello there,

    Is this a network Printer?

    If it is you might want to use the net use command.

    net use lpt?: \\server\printer /Persistent:yes

    Do this in the command prompt

    /persistent:yes is use to save the command line. If you don't put this at the end of the command wheny you reboot your computer next time you will have to do this command again.

    Hope this helps
    LVL 53

    Accepted Solution

    Here is the microsoft link to your problem if the following doesn't work
    LVL 53

    Expert Comment

    by:Will Szymkowski
    Also if its just a local printer try reinstalling it. When you go through the Print Wizard it should ask you if you would like to print to Dos based Programs.
    LVL 11

    Assisted Solution

    If the program was done the "old way", it will access the printer port directly, instead of using a hardware abstraction layer.
    So, it will only work with a printer plugged into the parallel port directly.
    LVL 17

    Assisted Solution


    In order to print from DOS in an offline environment like the stores, you will need to do a couple of things.

    1)      Install the Microsoft Loopback Adapter

    a)      In Control Panel, double click on Add Hardware.

    b)      Click Next

    c)      When the scan finishes, select "Yes, I have already connected the hardware"

    d)     Click Next

    e)      Scroll to the bottom of the list and select "Add a new hardware device"
    Click Next

    f)       Select "Install the hardware that I manually select from a list (Advanced)"

    g)      Click Next

    h)      Select "Network Adapters"

    i)        Click Next

    j)        Select "Microsoft" under the Manufacturer list.

    k)      Select "Microsoft Loopback Adapter" in the Network Adapter list.

    l)        Click Next

    m)    Click Next

    n)      Click Finish

    2)      Configure the Adapter

    a)      The loopback adapter is a virtual network adapter and can be configured the same as a regular network card.

    b)      Set the adapter to have a static IP address such as

    3)      Share the printer.

    a)      I recommend you use a share name that you will remember.  I used “Printer” in the new machines that are already deployed.

    4)      Capture the printer port.

    a)      NET USE LPT1: \\[Computer Name]\Printer /PERSISTENT:YES

    LVL 23

    Assisted Solution


    1) Install your USB printer
    2) Enable Sharing on your USB printer
    3) start> run> net use  lpt1: \\localhost\<printer share name> /persistent:yes
    4) Create a file c:\test.txt and put some test data in it
    4) start> Run> PRINT c:\test.txt    <This will print to LPT1 automatically - which should now be your USB printer>


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Title # Comments Views Activity
    sql server dynamic memory? 3 70
    Images 20 80
    Best Graph 2 34
    Perplexed with Google Play 2 30
    Whether you're new to the game or an experienced player, you can never get enough help trying to have the best Pokémon. This guide will do its best to serve and be a living document.  It will evolve as I have more things to add or change.
    Whether you believe the “gig economy,” as it has been dubbed, is the next big economic paradigm shift ( or an overstated trend (…
    Notifications on Experts Exchange help you keep track of your activity and updates in one place. Watch this video to learn how to use them on the site to quickly access the content that matters to you.
    After watching the Introduction to GIMP this tutorial will show you additional tools to use in GIMP.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now