我可以将两个数据集作为setdatasources用于水晶报告 [英] Can I use two datasets as setdatasources to a crystal report
本文介绍了我可以将两个数据集作为setdatasources用于水晶报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,
我使用数据库专家将两个不同的表附加到水晶报告上。
我得到了来自两份报告的数据。
现在在reportviewer中我使用的代码是这样的
Dear all,
I am having the two different tables attached to a crystal report using Database Expert.
I am getting the data from both the reports.
Now in the reportviewer i am using the code like this
billingreport.setdatasource(sa) and
billinreport.setdatasource(sa2)
我可以这样做吗?
提前致谢
我的尝试:
billingreport.setdatasource(sa)
CrystalReportViewer1.ReportSource =结算
billinreport.setdatasource(sa2)
CrystalReportViewer1 .ReportSource = billing;
推荐答案
加入两个表并在数据集中创建一个表适配器。
你没有需要两个数据集
Join Two table and create one table adapter in your dataset.
You don't need two dataset
这篇关于我可以将两个数据集作为setdatasources用于水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文