Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set printer to ...
Message
De
28/02/2000 19:51:48
 
 
À
28/02/2000 13:26:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00338554
Message ID:
00338798
Vues:
11
>I try to print on different printers, those printers aren't local, they are network printer. I tried 'Set printer to name \\PrinterPath' and it worked only if the printer is installed. Is there a way to print without installing all the printers.
>

Not safely; if they all use the same print driver, you can install one of the network printers under Windows to a port mapped locally, and then use any of a number of mechanisms to assign the remote printer to a local port (the Win32 API WNetAddConnection3() call can assign a remote device to a local port; you'd need to disconnect anything assigned there using WNetCancelConnection() before reassigning, you can use Novell's CAPTURE in NetWare environments, or my preferred mechanism, the WSH's Wscript.Network object, which has several methods that might be useful. See my NETRESOURCE class in the file section for sample WntAddConnection3() code, or the WSH site link in my .sig for that resource set.)
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform