如何添加服务以从IIS打印收据 [英] how to add services to print reciept from IIS

查看:81
本文介绍了如何添加服务以从IIS打印收据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的系统中连接了热敏打印机.我创建了虚拟目录以从IIS无法运行以获取打印的应用程序.如果我在IDE VS 2008中运行,则可以正常工作.,

thermal printer connected in my system., i created virtual directory to run my application from IIS cant able to get print. if i run in IDE VS 2008 its working fine.,

推荐答案

在不了解您的系统体系结构的情况下,我不得不在黑暗中进行射击并猜测

我认为您拥有像基于Web的POS系统那样的功能-具有1个或多个终端和一个中央IIS服务器
如果执行此操作,则IIS将尝试打印到与IIS服务器本地连接的打印机.

我写了一个类似的系统,而解决它的方法是

每个终端都有自己的登录名,然后在IIs服务器上,我将每个终端打印机配置为网络打印机
然后,使用POS的后端系统,我遍历了使用.net管理库配置的每台打印机,并将每个终端连接到特定的打印机.

完成此操作后,只需使用.net应用程序中的打印机属性(winform控件)来设置要打印的特定打印机,然后将其动态打印到该打印机即可.请记住不要调用showdialog,因为这将无法工作,但是您可以进行一些测试,以便可以在.net应用程序中使用winform功能,但请记住,它不会显示.
希望对您有帮助
Without knowing the architecture of you system , I have to take a shot in the dark and guess

I assume you have somethign like a web based POS system - That has 1 or more terminals and a central IIS server
If you do this IIS will attempt to print to a localy connected printer to the IIS Server

I wrote a similar system and the way I got around it is

Each terminal got their own login, then on the IIs server I configured each termal printer as a network printer
Then using the backend system of the POS I looped through each printer configured using the Management libraries of .net and hooked each terminal up to a specific printer.

once this was done its a simple matter of using the printer properties (winform control) in your .net app to set the specific printer to print to and then dynamically print to that printer. Keep in mind not to call showdialog as this will not work , but a few tests in you can use winform functionality in your.net app but keep in mind it wont display.

Hope this helps


这篇关于如何添加服务以从IIS打印收据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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