Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to USB printer in FPD not work
Message
From
28/09/2006 12:37:11
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Environment versions
Visual FoxPro:
FoxPro Dos
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01157840
Message ID:
01157894
Views:
32
>1. Enable File and printer sharing on PC under Network settings

Sorry. I've come over all blonde today."Network settings" accessed buy which applet? Networlk Connections from Control Panel? I can't see any "metwork Settings" title under which to work.

>2. Right-click on the printer in the printer list and share it
>3. Issue once from the Command prompt NET USE lpt1 \\Computername\PrinterShareName /PERSISTENT:YES
>
>>
>>I repro what John said on this:
>>
>>"I created two simple batch files. One tells the machine to print to the server's printer (you would change "\\server\Okidatam" to the location of your server's printer):
>>
>>@echo off
>>echo Disconnecting LPT1 from any other connections
>>net use lpt1 /delete
>>echo Rerouting printing to \\server\Okidatam
>>net use lpt1 \\server\Okidatam
>>pause
>>
>>And the other tells it to break that connection so it goes back to printing locally:
>>
>>@echo off
>>echo Disconnecting from the Server's printer
>>net use lpt1 /delete
>>pause"
>>
>>Please could you advise how rhis is germane to the described situation. Our user has a printer attached direct to his PC, AFAIK, and no network or shared devices
>>
>>As I say, I'm new to this Net Use and very rusty on DOS now.
>>
>>Cheers
>>
>>Terry
>>
>>
>>>1. Yes, it'll work on stand-alone PC.
>>>2. You can run NET USE from the Command Prompt, batch file, etc. You can find batch file samples in the same thread.
>>>
>>>
>>>>
>>>>>See Re: 2.5 DOS app not printing in Windows XP Thread #1010135 Message #1010145
>>>>
>>>>Just a few questions:
>>>>
>>>>"You've to share USB printer and than map the share to LPT1."
>>>>
>>>>Like in John's case, I suspect the computer will be stand-alone with no network:
>>>>
>>>>">The printer he's trying to use isn't on our network - it's connected directly to his notebook via a USB port. Would your answer still work? Mapping the computer to his LPT1 using the NET USE command for a printer that's directly connected to the notebook via USB?"
>>>>
>>>>>>You've to use NET USE command to map LPT1 to the network printer queue. For Exapmle
>>>>
>>>>>NET USE LPT1 \\PrintServer\PrintQueue
>>>>
>>>>Please forgive my ignorance, I must have lead a sheltered life, but in what environment do you issue the above command? DOS prompt? within the prog?
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform