从任何文档打印时运行Windows应用程序 [英] Run windows application when giving print from any document

查看:70
本文介绍了从任何文档打印时运行Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做打印机应用程序项目。当我从任何文件(excel / notepad / word)给出打印时,首先它应该连接到Windows应用程序并用按钮显示弹出窗口。当我按下按钮然后只有打印将来



任何人都知道这个请帮我回复这封邮件 - [删除] @ yahoo.com





提前感谢



电子邮件已删除 - OriginalGriff [/ edit]

解决方案

没有编写打印机驱动程序,并使其成为系统中唯一的打印机,你不能这样做:我真的不推荐用C#编写打印机驱动程序 - 你真的需要使用C ++。



打印机驱动程序不简单:开始批次,阅读的时间!

http://msdn.microsoft.com/en-gb/library/windows/hardware /ff563795(v=vs.85).aspx [ ^ ]

I'm doing printer application project.When I'm giving print from any documents(excel/notepad/word) first it should connect to windows application and display popup with button.When i press button then only it print will come

can any one know this please help me reply to this email-- [DELETED]@yahoo.com


thanks in advance

[edit]Email removed - OriginalGriff[/edit]

解决方案

Without writing a printer driver, and making that the only printer on the system, you can't do that: and I really woudln't recommend writing a printer driver in C# anyway - you really need to use C++ for that.

Printer drivers aren't simple: time to start lots, of reading!
http://msdn.microsoft.com/en-gb/library/windows/hardware/ff563795(v=vs.85).aspx[^]


这篇关于从任何文档打印时运行Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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