托管到iis时无法访问打印机 [英] Unable to access the printer when hosting to iis

查看:528
本文介绍了托管到iis时无法访问打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MVC中使用rdlc报告,打印操作在visual studio中运行时效果很好,但是当发布到在同一台机器上设置的iis时,打印操作不会发生。但是当我返回报告时as pdf报告它是
,我可以使用javascript打印文件。但我实际上不需要显示报告但想要从服务器打印..谢谢提前帮助

解决方案

除非您的打印机物理连接到COM或LPT端口,否则打印机仅安装在当前用户帐户上。


To解决您的问题,建议您创建一个正常的用户帐户来运行您的应用程序池,登录该用户帐户以配置您的打印机,并指定应用程序池在该帐户上运行并加载配置文件。


Hi , I am using rdlc report in MVC,Printing operation works perfectly when running in visual studio, but when published to iis which is set up in the same machine,printing operation is not taking place.But when I return the report as pdf the report it is there,and I can print the file using javascript.But I actually need not want to display the report but want to print from server..Thanks For help in advance

解决方案

Unless your printer is physically connected to your COM or LPT port, the printer is installed only on the current user account.

To address your problem, you're advised to create a normal user account for running your application pool, login that user account to configure your printer there, and assign the application pool to run on that account with profile loaded.


这篇关于托管到iis时无法访问打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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