asp.net中的RUNDLL32 PRINTUI.DLL [英] RUNDLL32 PRINTUI.DLL in asp.net

查看:76
本文介绍了asp.net中的RUNDLL32 PRINTUI.DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在用asp.net C#编写一个Web应用程序.我想创建一个链接,因此当用户单击它时,它将运行命令
"rundll32 printui.dll,PrintUIEntry ..."将打印机安装到本地计算机.

我该怎么办?

请帮忙.
谢谢

Hello,

I am writing a web application in asp.net C#. I want to create a link, so when users click on it, it will run the command
"rundll32 printui.dll, PrintUIEntry ..." to install the printer to local machine.

How can I do this?

Please help.
Thanks

推荐答案

我认为
I think that this[^] thread might help as I believe that you will need to run cmd.exe to do what you want.

This is of course assuming that you want it on the users machine, not the server, as Nish has pointed out.


请注意,您拥有的所有服务器端代码都将在服务器上运行. br/>
我认为您的意图是让客户在其计算机上安装打印机.在这种情况下,您需要使用客户端脚本来调用打印机对话框.根据浏览器的安全设置,此方法可能会或可能不会起作用.但是您不能从服务器端代码执行此操作.
Note that any server side code you have will run on the server.

I assume your intention is to get clients to install a printer on their machines. In this case you need to use client side scripting to invoke the printer dialogs. This may or may not work depending on browser security settings. But you cannot do that from the server side code.


这篇关于asp.net中的RUNDLL32 PRINTUI.DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆