与窗口服务网络打印 [英] Network printing with window service

查看:134
本文介绍了与窗口服务网络打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个朋友谁做有窗的形式。结果$ B $同样的事情b口需要的是让这一个窗口服务。

I have a friend who did the same thing with window form.
What I need is to make this to a window service.

的窗口服务程序(打印控制器服务)将被用作中央打印机控制器。结果,
。根据上的条件下,我将发送印刷作业以在网络上不同的打印机(打印机被安装在USB)。
它已经可以进行打印测试,但是当我列出下安装的打印机,未列出这些网络打印机。

The Window service program (printing controller service) will be used as a central printer controller.
Depending on the condition, I will send the printing job to different printer on the network (the printer is installed on USB). It is already possible to do a test print, but when I list down the installed printers, these network printers are not listed.

但在我朋友的节目,所有他需要做的是将打印机名称设置为计算机的IP地址,并为这台机器,只要确保它被设置为默认打印机。

But in my friend's program, all he need to do is to set the printer name to the ip address of the machine, and for that machine, just make sure that it is set to the default printer.

在我的朋友设置ipaddress和触发打印,将打印到正确的打印机。但对于我的情况下,窗口服务已经没有列出网络瘫痪的打印机,如果打印机名称错误,将无法打印。

Once my friend set the ipaddress and trigger print, it will be printed to the correct printer. But for my case, the window service already did not list down the network printers, it will not print if printer name is wrong.

有关我的窗口服务,我使用的是本地系统。结果
听到有关创建与打印机有关IP地址的本地端口,但还没有来管理测试。

For my window service, I'm using Local System.
heard about creating a local port with the relevant IP address of the printer, but have yet to manage to test.

希望有人能够提供一些指导

Hope that someone is able to give some guidance

推荐答案

有几分放弃使用窗口服务,因为当我登录了我的计算机可以访问打印机,它只会只显示本地安装的那些,那些网络打印机不以某种方式承认。

Have sort of gave up on using window service, as when I log down the printers my computer can access, it will only show only those installed locally, those network printers are not recognized somehow.

试图用标准的TCP / IP端口,都没有问题设置,但甚至无法进行打印测试。

Tried with standard TCP/IP port, have no problems setting up, but unable to even do a test print.

决定通过使用窗口形式权衡,根据映射并发出打印指令设定默认打印机。经过测试,它的工作。这样一来,用户只需要每天登录计算机,但优点是将有与问候许可和访问权限

Decided to trade off by using window form, setting the default printer according to the mapping and issue a print command. Tested and it worked. This way, the user will only need to login the computer each day, but the advantage is that there will be no issue for the need of additional settings with regards to permission and access rights

这篇关于与窗口服务网络打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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