IIS不打印该文件 [英] IIS is not printing the file

查看:71
本文介绍了IIS不打印该文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我用VB exe打印文档。当我从ASP.NET应用程序开始时,文档正在网络打印机上打印。当我在IIS上托管它时,文档没有引用。

我将应用程序池更改为网络服务,本地系统(< identity impersonate =true>)。

请为我的问题提供解决方案。

Hi Everyone,

I am using VB exe to print the document. The document is printing on Network Printer when i start with my ASP.NET Application. When i Host it on IIS document is not priting.
I changed the application pool to Network Service, Local System(<identity impersonate="true">).
Please provide me any solution for my problem.

推荐答案

VB代码在服务器上运行,而不是客户端。

所以你的代码是打印在开发中工作,因为服务器和客户端在同一个局域网上 - 实际上可能是同一台计算机。



当你在生产中运行它时,它仍然运行在服务器上 - 但它现在在不同的网络上,无法在办公室看到打印机。
VB code runs on the server, not the client.
So your code to print works in development because the server and the client are on the same LAN - and indeed are probably the same computer.

When you run it in production, it still runs on the server - but it's now on a different network and can't see the printer in your office.


这篇关于IIS不打印该文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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