Page 2 of 2
Re: Printing to Network Printer - no dialoge box
Posted: Tue Sep 03, 2019 11:38 pm
by SparkOut
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"
Re: Printing to Network Printer - no dialoge box
Posted: Tue Sep 03, 2019 11:39 pm
by newpie
Ok, let me try again, lol. Sorry for trouble. I will report back.
Re: Printing to Network Printer - no dialoge box
Posted: Tue Sep 03, 2019 11:40 pm
by SparkOut
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
Posted: Tue Sep 03, 2019 11:52 pm
by newpie
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
Posted: Wed Sep 04, 2019 12:03 am
by SparkOut
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
Posted: Wed Sep 04, 2019 12:05 am
by newpie
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