Tho*_*mas 31 .net c# report reporting-services visual-studio-2012
我使用报告向导在VS 2012下创建了一个.rdlc-Report,并添加了数据源和数据集.当我尝试使用下面的代码呈现报告时,我收到以下错误消息:
"无法为数据集'DataSet1'创建数据读取器."
bytes = localReport.Render("PDF", sdeviceinfo, out smimetype, out sencoding, out sfilenameextension, out streamids, out myWarnings);
Run Code Online (Sandbox Code Playgroud)
在此先感谢您的任何建议!
小智 65
我有同样的问题,"无法为数据集'zzz创建数据阅读器'"
答案是ReportDataSource(字符串xxx,DataTable yyy)
您应该使用正确的名称.xxx应该是zzz