Question Locked

Foxpro 2.6 (printing with Vista)

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

I have a legacy database in Foxpro 2.6. I moved foxpro to a vista machine (everything works except the printing). I use to print to LPT1, new machine doesn't have an LPT1 and the printer hooks up USB.

Any way to trick Foxpro into thinking the USB is LPT1? Another solution.

Thanks

3 replies

by hemanthappy

Hey bro, I have solution to this problem. If you are still looking to print to lpt1 in Vista using USB printer, let me know I can help. hemanthappy@gmail.com

by hemanthappy

Here is what you need to do:

Please ensure that control panel is in classic view

Share the USB printer:
Go to Control Panel>Printers> right click on the printer you want to print on and click sharing. Click on share this printer and give a name, example: EpsonFX

Click on system in control panel and click on Advanced system settings. Click on computer name and write down the Full Computer name. I am taking example if the computer name is "computer-1"

Now this is tricky:

Open Notepad and type this :

net use lpt1: /d
net use lpt1: \\computer-1\EpsonFX

Click on File and "save as" and give the file name example netstart.bat please note it is netstart dot bat without any space.
Change the save as type to "All Files". Please note, DO NOT save as text document.

Copy this file to Start>AllPrograms>Startup so that when the computer is started this file is running automatically.

This will redirect all prints sent to LPT1 to the shared printer EpsonFX

Let me know how it goes.

This discussion is closed to new replies.