如何访问和使用ActiveX object-Asp.Net C#打印客户端打印机 [英] How to Access and Print a client printer using ActiveX object-Asp.Net C#

查看:136
本文介绍了如何访问和使用ActiveX object-Asp.Net C#打印客户端打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从客户端打印机使用ActiveX对象打印在Web应用程序
 IAM使用Asp.Net C#(视觉studio12)

How to Print from client printer in a Web app using ActiveX object Iam using Asp.Net C#(Visual studio12)

推荐答案

我在做同样的问题几年前。
据我rember有访问过的DLL函数调用打印机对话框的方法。但北京时间因为不同的Windows版本和安全设置并不十分可靠。
我们决定把印刷的最好办法是prepare一切服务器端的PDF文件,然后将其发送到打印机。

I was working on the same problem some years ago. As far as I rember there is a way to access the printer dialog over dll function call. But ist not very reliable because of different windows versions and security settings. We decided the best way to the printing is to prepare everything serverside in a pdf file and then send it to the printer.

这些链接可以帮助你得到你的问题:

these links might help you to get on with your problem:

http://forums.asp.net/ T / 1531637.aspx?从+ VBScript中调用的dll + +功能+ +

http://technet.microsoft。 COM / EN-US /库/ cc783789%28V = ws.10%29.aspx

好运气! - 但北京时间更好,更容易去与PDF C#的组件如

good luck!! -- but ist better and easier to go with pdf c# component like

http://pdfsharp.com/PDFsharp/

这篇关于如何访问和使用ActiveX object-Asp.Net C#打印客户端打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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