Adding Networked Printer with WSH
Hi having a problem adding a Printer using the WSH in Word.
VB Code:
objPrinters.AddPrinterConnection "2nd_label", "\\lvp-fap\2nd_flr7"
I get the folloeing error
Quote:
Runtime Error -2147023696 (800704b0)
Automation error The specifiied device name is invalid.
But I can see the printer on the \lvp-fap\ server ad the name is correct can any one help!!!!
Thanks
:thumb:
Really confused now did some searching on t'internet and found this that works a treat
VB Code:
Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\lvp-fap\2nd_label"
why does this work and not my original?????