akelaxvi
asked on
connect to a network printer via script
Hallo experts!
I'd need a script from which users can connect to a network printer.
Actually there will be a HTML page with many hyperlinks (and many similar scripts), one for each network printer: I wish users could just choose the needed printer, click on the link and get the job done by the script.
thanks for your help!
Akelaxvi
I'd need a script from which users can connect to a network printer.
Actually there will be a HTML page with many hyperlinks (and many similar scripts), one for each network printer: I wish users could just choose the needed printer, click on the link and get the job done by the script.
thanks for your help!
Akelaxvi
ASKER
Well, I don't want to set the print options of a network printer; it would be enough to connect to it.
I found something similar here:
https://www.experts-exchange.com/questions/20621146/Connect-to-printer-via-hyperlink.html?query=printer+via+hyperlink&searchType=all
.
but that's not definitive.
I'd like the ActiveX control method or a server side script (ASP.net?).
Any working solution?
thanks
Akelaxvi
I found something similar here:
https://www.experts-exchange.com/questions/20621146/Connect-to-printer-via-hyperlink.html?query=printer+via+hyperlink&searchType=all
.
but that's not definitive.
I'd like the ActiveX control method or a server side script (ASP.net?).
Any working solution?
thanks
Akelaxvi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hello,
here what I found (tested with IIS 6.0, XP home and Pro):
1) create a simple .BAT or .CMD script like: start \\server1\printshare1
2)put that file into a real or virtual directory of the web site
3) hyperlink that file from the webpage as usual: href="/directoryname/scrip tname.BAT (or .CMD)
4) in order to get the script executed when users click on it, into IIS open the properties window of the directory containing the script, choose HTTP headers, then MIME Types, then New and set: extension = .* and MIME type = application/octet-stream
Users need access right to the folder containing the script and manage printer right on the printer installed by the script.
Works for me, hope helps you!
Akelaxvi
here what I found (tested with IIS 6.0, XP home and Pro):
1) create a simple .BAT or .CMD script like: start \\server1\printshare1
2)put that file into a real or virtual directory of the web site
3) hyperlink that file from the webpage as usual: href="/directoryname/scrip
4) in order to get the script executed when users click on it, into IIS open the properties window of the directory containing the script, choose HTTP headers, then MIME Types, then New and set: extension = .* and MIME type = application/octet-stream
Users need access right to the folder containing the script and manage printer right on the printer installed by the script.
Works for me, hope helps you!
Akelaxvi
Cd&