通过C#从其他应用程序打印 [英] Printing from other applications via C#

查看:116
本文介绍了通过C#从其他应用程序打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我对软件开发还很陌生,但是自从开始新工作以来,我已经分配了许多项目来开始.我决定首先使用的是打印机/托盘选择应用程序.

目前,该公司在Word中使用VB宏来选择一台打印机和合适的打印托盘,这些打印机可以正常工作,但是他们希望该系统可在Word以外的其他应用程序中使用.

是否可以设计一个应用程序,以便在要打印文档并询问用户他们要打印到哪个纸盘并将打印作业定向到该纸盘时从系统纸盘最大化使用?

我已经阅读了很多有关使用printui.dll来管理实际打印机的信息,但现在我需要了解以某种方式捕获其他应用程序中的打印事件,这听起来像是一项使命.是否有可以用于实现此目的的DLL?

Hello Guys,

I''m fairly new to software development, but since starting a new job I''ve been assigned a number of projects to start on. The one I have decied to start with is a printer/tray selection application.

Currently the company uses VB macros inside Word to select a printer and appropriate print tray which works fine, but they want this system avaliable in other applications other than Word.

Is it possible to design an application that will maximize from the system tray when wanting to print a document and asks user which tray they want to print to and direct the printing job to that tray?

I''ve read alot about using printui.dll for managing the actual printer but I now need to know about somehow capturing the print event in other applications, sounds like a mission. Is there DLL that can be used to achieve this? Any advice or indication of the difficulty of this task?

推荐答案

您需要创建一个伪装成打印机的应用程序.看看 http://www.blackice.com/Printer%20Drivers%20Resource%20Tool% 20Kit.htm [ ^ ]

有一个演示版本,您可以在购买前尝试.尝试自己动手制作,可能会带来更多乐趣,但对于新手来说,这将使该项目极具挑战性.
You need to create an application that masquerades as a printer. Take a look at http://www.blackice.com/Printer%20Drivers%20Resource%20Tool%20Kit.htm[^]

There''s a demo version that you can try before you buy. Trying to roll your own, while possibly more fun would make the project extremely challenging for a newcomer.


这篇关于通过C#从其他应用程序打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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