单击按钮即可直接打印水晶报表 [英] direct print of a crystal report on button click

查看:80
本文介绍了单击按钮即可直接打印水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在按钮单击中打印报告?
如何在Crystal Report中制作总计单列数据?

解决方案

当然,不仅仅是提示:

如何通过单击按钮打印报告?
好吧,您只需要在按钮单击事件中调用printviewer的打印方法即可.

如何在Crystal报表中制作总共一列的数据?
您始终可以拥有任何列的运行总计.只需查看列的属性并寻找选项即可.

要了解有关报表功能的更多信息,请从此处开始: Idiot Crystal Reports指南,第一部分-Winforms [ ^ ]


在这里看看这个解释得很好.

在ASP.NET中自动打印Crystal报表 [ ^ ](服务器端和客户端)


我在asp.net 2005中使用iis7
在Win Server 2008 R2 64位上
我的打印机是网络打印机
并使用服务器端进行打印
此代码可从Visual Studio正常工作,但是当发布应用程序并从url打印时,出现此错误:
<><><.在CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)..在CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)..在VisitRegister.PrintDirectlyFromServer(String idIndex)


How can i print of report in button click?
How can i make a A total of a single column data in crystal report?
can any one give me some sort of hint?

解决方案

Sure, more than hints:

How can i print of report in button click?
Well, all you need is to call the print method of the printviewer in your button click event.

How can i make a A total of a single column data in crystal report?
You can always have a running total of any column. Just look at the properties of the column and look for the option.

For learning more about features of report, start from here: Idiot''s Guide to Crystal Reports, Part I - Winforms[^]


Here take a look at this one which is explained very well.

Automatically Printing Crystal Reports in ASP.NET[^] (Both server side & client side)


i use iis7 with asp.net 2005
on win server 2008 r2 64bit
and my printer it is network printer
and use server side to print
this code work correct from visual studio but when publish application and make print from url i get this error:
.Invalid printer specified.><><>< at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal).. at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value).. at VisitRegister.PrintDirectlyFromServer(String idIndex)


这篇关于单击按钮即可直接打印水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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