ReportDataSource reportDataSource = new ReportDataSource("queryStat_wjwj", SqlHelper.ExecuteDataset(sql.ToString()));

出现错误 “值不在预期的范围内”

注意 第2个参数 SqlHelper.ExecuteDataset(sql.ToString()) 返回的 dataset

改成 SqlHelper.ExecuteDataset(sql.ToString()).Tables[0] 返回的 Table 即可

 

http://blog.csdn.net/codetian/archive/2009/06/23/4292383.aspx

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2022-12-23
  • 2021-12-03
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2021-12-18
相关资源
相似解决方案