Printing to Network Printer - no dialoge box
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Printing to Network Printer - no dialoge box
No, the <~%printernameGoesHere%~> is a placeholder. This will entirely be replaced by the correct unc pathname for the printer you want to connect. I "hardcoded" the printer name in the sample script, it might need to be adjusted a little, but on that line, it should turn out something like
strUNCPrinter = "\\idkwvmwprn003\HL65"
strUNCPrinter = "\\idkwvmwprn003\HL65"
Re: Printing to Network Printer - no dialoge box
Ok, let me try again, lol. Sorry for trouble. I will report back.
Re: Printing to Network Printer - no dialoge box
The button script does that replacement for you by the way. The vbscript in the custom property should keep the placeholder. It will be replaced again the second time to put the default printer back the way it was.
Re: Printing to Network Printer - no dialoge box
Ok, I changed it and tweaked the "printer name" a bunch of different methods and still gives me error as I stated before. Not sure what might be going on.
Re: Printing to Network Printer - no dialoge box
I don't know then, sorry. If you have just copied and pasted the script into the button and the vbscript into the custom properties respectively, then it should work, if it's going to at all. You could try actually installing the printer just to see if there is any more specific information you can gather about the printer hostname in the unc path. More clues might give a direction but I am just throwing out ideas in ignorance here.
Re: Printing to Network Printer - no dialoge box
Thanks for trying. I did try installing it and the original code works great. I will install again and see if there is hidden information. Thx