如何设置水晶报告中的份数? [英] How to set number of copies in crystal reports?
本文介绍了如何设置水晶报告中的份数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Visual Studio 2010创建水晶报表,并在报表上使用ADO Dataset作为数据库字段。现在我想在水晶报表查看器上的打印按钮上设置默认的2份帐单。我在水晶报表查看器上加载的代码是
Report.Bill objRpt = new Report.Bill();
objRpt.SetDataSource(DT1);
objRpt.PrintToPrinter(2,true,0,0);
crystalReportViewer1.ReportSource = objRpt;
crystalReportViewer1.Refresh();
但它只打印单一的账单。任何人都可以告诉我如何解决这个问题?我是水晶报道的新手。
解决方案
这里解决了线程
我如何以编程方式生成Crystal Reports的多个副本(详细信息部分)? [ ^ ]
I am creating a crystal reports using Visual Studio 2010 and using ADO Dataset for database field on report. now i want to set default 2 copies of bill on print button on crystal report viewer. code which i have written on crystal report viewer load is
Report.Bill objRpt = new Report.Bill(); objRpt.SetDataSource(DT1); objRpt.PrintToPrinter(2, true, 0, 0); crystalReportViewer1.ReportSource = objRpt; crystalReportViewer1.Refresh();
But it is printing only single copy of bill. Can anyone tell me how can I fix that? I am very new in crystal reports.
解决方案
Here solved thread
How can I programmaticly produce multiple copies of Crystal Reports (Details Section)?[^]
这篇关于如何设置水晶报告中的份数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文