在客户端打印水晶报表在ASP.NET C# [英] Printing Crystal Report on Client Side in ASP.NET C#

查看:530
本文介绍了在客户端打印水晶报表在ASP.NET C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个ASP.NET应用程序,我打印的Crystal Report报告。问题是,该报告是在服务器打印机打印,并且因为它是一个Web应用程序我需要在客户机中获得打印出来。

I created an ASP.NET application where I print a Crystal Report report. The problem is that the report is printed at the Server Printer, and as it is a Web Application I need it to get printed at the client machine.

我使用的方法 PrintToPrinter(1,假的,0,0)为了打印而无需一个水晶报表查看器。

I am using the method PrintToPrinter(1, false, 0, 0) in order to print it without a crystal report viewer.

有谁知道,如果有是有它印在客户端的方法吗?如果不;你有什么建议生成ASP.Net应用程序在客户端的报告?

Does anybody knows if there is a way to have it printed on the client side? If not; what do you recommend to generate reports on the client side for ASP.Net applications?

推荐答案

这里是你需要做/尝试获得该报告上打印的客户端计算机是什么

here is what you will need to do / try to get the report to print on the Client Machine

以下行打开打印对话框不显示打印preVIEW打印

Below line opens up print dialog box to print without showing print preview

crystalReportViewer1.PrintReport();

以下行直接发送到的ReportDocument默认打印机。

Below line directly sends reportdocument to default printer.

oReportDocument.PrintToPrinter(1,true,0,0); 

这篇关于在客户端打印水晶报表在ASP.NET C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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