Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer Output
Message
 
 
To
09/05/2001 18:07:29
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00505558
Message ID:
00505807
Views:
18
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform