No of visitors who read this post: 365
Category: FoxPro
Type: Question
Author: Amira Dalen
No votes yet

Is it possible to print on HP Printers or any other printers from DOS mode on a FoxPro software? How do I do it?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#

Hi there,

To print to a USB printer from DOS, you first have to install the MS loopback Adapter.

After you have installed the adapter it is important that you configure the adapter.

The MS Loopback Adapter is a virtual adapter that can be configured the same way as a regular NIC. The first order of business is to set a static IP address for the adapter then share the printer and capture the printer port. Then edit and type the following.

@ echo off

Net use * /delete

Net use lpt1: \\<computer Name>\<printerName> /persistent:yes

And save the file as a .bat extension.

Hope that helps.