如何自动从&QUOT发送打印作业;云计算"服务器打印机? [英] How to automatically send print job from "Cloud" server to printer?
问题描述
一个画面应该是值得一1000字,让我们看看是否可以缩短这个帖子了一下......基本上,我在寻找到如何的网络上运行codeA解决方案云中的服务器,将打印命令发送到办公室1个(标签打印机)中的打印机。
A picture is supposed to be worth a 1000 words, so let's see if that can shorten this post up a bit... Essentially, I'm looking into "how" to code a solution that runs on the web server within the cloud that will send a print command to a printer within office 1 (label printer).
打印作业确实是ASP.NET Web应用程序中的工作流的一部分,我想如果可能的话让所有的code的单个应用程序中。我怎么能去这样做?
The print job is really part of work flow within the ASP.NET web application and I would like to keep all of the code within a single application if possible. How can I go about doing this?
为了安全起见,我应该避免创建从云,并在云被用来向下推命令提取数据厅1中的一个新的应用程序。我真的从ASP.NET应用程序中的code的立场看这一点,也有可能超越到更多的打印机上serverfault /超级用户问题。我会保存为未来的问题,虽然有
Due to security, I should avoid creating a new application within Office 1 that pulls data from the "cloud" and have the "cloud" be used to push the command downward. I'm really looking at this from a code standpoint within the ASP.NET app and also potentially transcending into more of a serverfault/superuser question on the printer. I'll save that for a future question there though.
推荐答案
从编码的角度看,首先是框架3.0版本,有的 System.Printing
命名空间,它提供了类打印作业发送到本地,远程或专用打印机设备。特别是,兴趣班可能是 PrinServer
, 打印队列
和的 打印标签
。
From a coding perspective, starting with version 3.0 of the framework, there is the System.Printing
namespace, which provides classes for sending print jobs to a local, remote, or dedicated printer appliance. In particular, classes of interest may be PrinServer
, PrintQueue
, and PrintTicket
.
有关之前3.0框架的版本,可以使用的后台处理程序API函数来完成similiar任务。您可以在 pinvoke.net 。
For versions of the framework prior to 3.0, you can use the spooler api functions to accomplish similiar tasks. You can find some pinvoke signatures at pinvoke.net.
这篇关于如何自动从&QUOT发送打印作业;云计算"服务器打印机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!