从C#.net找到连接到客户端计算机的本地打印机 [英] Locate a Local Printer connected to a client machine from C#.net

查看:490
本文介绍了从C#.net找到连接到客户端计算机的本地打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在asp.net中使用Crystal Report.但是我不想在Crystal Report查看器中使用打印选项.我要在单击按钮时进行打印.但是打印是-在服务器端的打印机上完成.
任何身体的帮助.......

或请帮助我使MS报告查看器按钮的打印在非IE浏览器中可见.

谢谢Adv .......................

I am using crystal report in asp.net. But i don''t want to use the print option in the crystal report viewer. I want to print on a button click. But the print is - be done on the printer on the server side.
Any body help.......

or please help me to make the print of MS report viewer button visible in browsers other than ie.

Thanks In Adv....................

推荐答案

您需要禁用 CrystalReportViewer控件的工具栏中的打印"按钮,并通过代码管理所有打印.
您需要配置打印选项并从代码而不是从Crystal Reports UI调用打印机.为此,请使用ReportDocument对象模型的PrintOptions类和PrintToPrinter()方法.
You need to disable the Print button in the toolbar of the CrystalReportViewer control and manage all printing through code.
You need to configure print options and call a printer from code, rather than from the Crystal Reports UI. To do that, you use the PrintOptions class and the PrintToPrinter() method of ReportDocument object model.


Some posts in this[^] thread may help.


这篇关于从C#.net找到连接到客户端计算机的本地打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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