使用RDLC多个数据集 [英] Using multiple datasets in RDLC
问题描述
我的工作RDLC报告和报告工作得很好。当我增加了一个数据集的RDLC文件我被困。在添加数据集,它增加了一个数据来源。我跑项目,该报告是没有更多的工作给予了错误: 的数据源实例尚未为数据源提供的
可有一个人请指导我采取什么步骤才能使用多个数据集。我使用Visual Studio 2012。
I am working on rdlc reports, and the reports work just fine. I got stuck when I added one more dataset to the rdlc file. On adding the dataset, it added a data source as well. I ran the project, and the report was no more working giving the error: A data source instance has not been supplied for the data source
Can some one please guide me on what steps to take in order to use multiple datasets. I am using Visual Studio 2012.
推荐答案
多个数据源中添加如下:
ReportViewer1.LocalReport.DataSources.Add(rdS);
ReportViewer1.LocalReport.DataSources.Add(rdS1);
请参阅此链接:
<一个href=\"http://www.c-sharpcorner.com/UploadFile/robo60/StandaloneRDLCReports11142007183516PM/StandaloneRDLCReports.aspx\" rel=\"nofollow\">http://www.c-sharpcorner.com/UploadFile/robo60/StandaloneRDLCReports11142007183516PM/StandaloneRDLCReports.aspx
所有部件都包括在本
也可参考这个有用的讨论:
http://forums.asp.net/t/1241964.aspx
这篇关于使用RDLC多个数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!