“Object reference not set to an instance of an object” caused by height of Tablix

前端 未结 2 1623
梦如初夏
梦如初夏 2021-01-27 08:08

I have an issue with a report causing an \"Object reference not set to an instance of an object\" exception when run through my web application. This is, so far, only happening

相关标签:
2条回答
  • 2021-01-27 08:30

    I've experienced this problem a few times. It typically happens to me when I have a hidden textbox executing some Code.xxx routine and that textbox is located under a table, and the table has some kind of group page break.

    It seems that with each page break, the fields hidden under the table are refreshed and sometimes they get a object reference error.

    Here's the weird thing - I can typically fix the problem simply by moving all the hidden fields to a location such that their upper left corner is above the table's upper left corner, or to the left of it. It's like the position of the field somehow has some influence on what is refreshed and what is not.

    I do not claim to know why it works, it just does.

    0 讨论(0)
  • 2021-01-27 08:33

    Fixed by changing the long decimal on the height of a Tablix from 3.09444in to 3.1in.

    I did not choose the height 3.09444in.

    The Reporting Services designer chose that for me while I designed the report.

    0 讨论(0)
提交回复
热议问题