开发者

RDLC Report With Empty DataSet

开发者 https://www.devze.com 2023-03-25 08:32 出处:网络
I\'m currently trying to get an rdlc report to work, and it works fine except when I pass an empty dataset to it (the dataset is determined dynamically at runtime -- ugly, but this is the code I was p

I'm currently trying to get an rdlc report to work, and it works fine except when I pass an empty dataset to it (the dataset is determined dynamically at runtime -- ugly, but this is the code I was passed and I'm not quite experienced enough to really feel confident about wiping it and rewriting it). When I pass it an empty DataSet, it fails with an "Object reference not set to an instance of an object." The strange thing is, I have another report that gets passed a similar DataSet, but it doesn't fail. I'm not quite sure why开发者_如何学JAVA one report with an empty DataSet is failing, but the other is not.

Any help is much appreciated!


Figured it out. As it turns out there was a stray parameter that wasn't getting set... rebuilding the report from the ground up did the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号