Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Redirecting printing. Help Please!!!
Message
From
27/01/2000 18:34:47
 
 
To
27/01/2000 18:03:28
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00323859
Message ID:
00323868
Views:
26
>Hi,
>
>I am having a problem redirecting the printed output from our FPD 2.6 application when user changes from local printer to network printer and back in Windows. For example there might be a local Laser printer and a dot matrix printer with checks in the LAN.
>
>Our application prints all output to LPT1:. With Novell, we redirect by issuing a MAP command from a DOS session.
>

You are in real trouble. It doesn't work as you think in DOS, either. You use NetWare's CAPTURE to assign ports to print queues - MAP handles drive mappings.

If both printers are local, use SET PRINTER to port name within FPDOS. If you use Novell networking, CAPTURE still points a local port to a NetWare-managed remote print queue, and ENDCAP releases it; it can be fired from FPDOS's RUN as long as the server's SYS:PUBLIC directory or the equivalent in an NDS environment is in your DOS search path. If referring to an MS Client, NET USE port name \\ServerName\PrinterShareName assigns the printer port to the printer named PrinterShareName on machine ServerName, and NET USE port name /DELETE releases it. Ask your network people which client is handling the printer if you don't know.

You to learn about your network. You will not be able to guess. Win9x is not DOS, and NT is even less like DOS.

Your network support people should be able to assist in sorting out what type of system provides access to the printer. If you don't have network support people, hire some.

>I haven't figured out how to do this consistently in Windows. I have tried setting up two printers and capturing/uncapturing ports from Windows but it's been trial and error with no repeatabilty at other customers.
>
>This is embarrassing!
>
>Thank you.
>
>Alex
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform