RDLC报表数据集的一个细节,导致错误为 尚未数据源提供数据源实例
报表中,数据集的名字DataSet_CZ,

这里报表这样加载,视乎是的.
reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("DataSet_CZ", 表名));
但是绝对是:
正确的应当是:
reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1",表名));
问题:我建立的数据集,为什么提示 DataSet1错误呢?DataSet1从哪里来的呢?没有建立呢?
从这里来的,看图


浙公网安备 33010602011771号