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
But I can see the printer on the \lvp-fap\ server ad the name is correct can any one help!!!!Runtime Error -2147023696 (800704b0)
Automation error The specifiied device name is invalid.
Thanks
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?????


Reply With Quote