托管到iis时无法访问打印机

编程入门 行业动态 更新时间:2024-10-27 12:26:33
本文介绍了托管到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 configureyour printer there, and assign the application pool to run on that account with profile loaded.

更多推荐

托管到iis时无法访问打印机

本文发布于:2023-11-01 22:52:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1550639.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:打印机   无法访问   iis

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!