ASP Development question: Install a printer on the client's machine?
March 17, 2008 12:29 PM
Subscribe
ASP.Net development question. Can I map to a printer on the client's machine from a web page?
I'm trying to build a web page that installs printer drivers by clicking on an icon. This is something I saw a consulting company show off years ago, and I've wanted ever since. They had a web page that showed floor plan of their offices with little printer icons located wherever physical printers were located. Click on the icon and that printer is added to your Windows client, and set as the default printer.
I think the consulting company was using some native component of Novell -- which is what they were trying to sell us at the time. I'm trying to recreate this in an ASP.Net page, and have had no luck. Google hasn't found me anything promising. Anyone have any idea?
My original thought was to shell out the command "RunDll32.EXE printui.dll,PrintUIEntry /in /n \\\\server\\printer".
posted by Eddie Mars to computers & internet (3 comments total)
1 user marked this as a favorite
The thing is, installing drivers- or running any clientside programs from a webpage- is generally "very bad". If you want to do it, you don't need asp.net per se; simply have your page include a vbscript/jscript that launches the printer installation, which should trigger a security warning from the browser when the user visits the page. From Technet's script center:
In terms of the right way to solve the problem... while your solution sounds cool, it's even better if your systems administrators use active directory or something cooler to ensure people get the closer physical printer, automatically. Users shouldn't have to think about which printer they want, they should just click "print" and the right things will happen.
posted by hincandenza at 1:00 PM on March 17