IIS中的打印错误 [英] printing error in IIS

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

问题描述

任何人都可以解决此问题.在iis上运行我的代码时遇到问题.我想用我自己的按钮打印销售收据,但挂起了.........

Can any solve this problem. M getting problem while running my code on iis. I want to print the receipt of sale with my own button but it hangs up..............

推荐答案

考虑IIS不会根本不打印任何内容,也没有选择余地,这是在说什么?"

如果您在服务器端使用ASP.NET代码在连接到服务器的打印机上打印某些内容,则会遇到问题.如果两个客户同时打印东西怎么办?

更好的解决方案是根本不让您的ASP.NET代码进行任何打印,而提交对处理打印的服务的请求.该服务将检查消息队列或数据库表或某些其他排队过程,以一张一张地打印作业.然后该服务将处理所有打印到您的打印机.

这样,您的ASP.NET代码就可以自由地处理其他客户端请求,而不会浪费大量时间等待打印机.
Considering IIS doesn''t "print" anything at all, nor has any option to, what are you talking about??

If you''re having the server side ASP.NET code print something on a printer connected to the server you''ve got a problem. What if two clients print something at the same time??

A better solution would be to not have your ASP.NET code do any printing at all but instead submit a request for a service to handle the printing. The service would check some message queue or database table or some other queuing process for jobs to print, one-by-one. The service would then handle all printing to your printer.

Your ASP.NET code would then be free to handle other client requests instead of wasting a bunch of time waiting for a printer.


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

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