使用html和windows打印机服务在asp.net中打印 [英] print in asp.net using html,and windows printer service

查看:153
本文介绍了使用html和windows打印机服务在asp.net中打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




当用户点击打印收据时如何调用Windows打印机...并以pdf格式打印



请咨询

解决方案

http://www.w3schools。 com / jsref / met_win_print.asp [ ^ ]


您可以使用经典方法,即在javascript中使用window.print(),它依赖于客户端浏览器的打印功能。这是最简单的方法,但是你根本无法控制打印过程。

如果你的目标是一种特殊的打印机,如热,冲击,点阵等,那么理想的是你学习目标打印机支持的命令语言(例如ESC / P,ZPL,EPL等)以获得快速的打印性能,然后使用这些工具中的任何一个或者按照相同的方法自己创建一个以使其工作



qzprint [ ^ ]:免费或付费选项。需要在客户端使用JAVA VM

WebClientPrint [ ^ ]:付费,需要jQuery& ASP.NET

Hi
how to call windows printer when user click on print receipt...and print in pdf also

pls advice

解决方案

http://www.w3schools.com/jsref/met_win_print.asp[^]


You can use classic approach i.e. by using window.print() in javascript which relies on the client browser's printing functionality. It's the simplest way but the one which you have no much control on the printing process at all.
If you are targeting a special kind of printer like thermal, impact, dot-matrix, etc., then the ideal would be you learn the command language your target printer supports (e.g. ESC/P, ZPL, EPL, etc) to get fast printing performance and then use any of these tools or create one by yourself following the same approach to get it working

qzprint[^]: free or paid options. requires JAVA VM at the client
WebClientPrint[^]: paid, requires jQuery & ASP.NET


这篇关于使用html和windows打印机服务在asp.net中打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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