Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printer Output
Message
 
 
À
09/05/2001 18:07:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00505558
Message ID:
00505807
Vues:
17
>I see that set("printer",2) will give me the name of the current printer. But what will give me the current output of the printer. For example the current output for my printer is OUTPUT=\\IBMNT\Upstairs. What command or commands can I use to get this information?

Actually set("printer",2) returns default windows printer and set("printer",3) default VFP printer.
You can use WSH to get the port and the network mapping. See sample code below
oNet = CREATEOBJECT("WScript.Network")
oPrinters = oNet.EnumPrinterConnections()
? "Network printer mappings:"
For i = 0 to oPrinters.Count - 1 Step 2
   ? "Port " + oPrinters.Item(i) + " = " + oPrinters.Item(i+1)
Next
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform