使用报表查看器在显示Microsoft报表时出错

时间:2022-11-20 19:13:11

I faced this error while using Microsoft report viewer when i publish it but i didn't found in in local machine so my question -- what this error refer to and how to fix it ??

我在发布它时使用Microsoft报表查看器时遇到此错误,但我没有在本地机器中找到所以我的问题 - 这个错误引用了什么以及如何修复它?

An error has occurred during report processing.
    Exception has been thrown by the target of an invocation.
        Object reference not set to an instance of an object.

thanks for help.

感谢帮助。

1 个解决方案

#1


0  

You need to make sure that the ProcessingMode property is set to Local or Remote depending on where the report will be hosted. If you set it to Local, you need to set the LocalReport property, otherwise you need to use the ServerReport property when assigning the report to the control.

您需要确保ProcessingMode属性设置为Local或Remote,具体取决于托管报告的位置。如果将其设置为Local,则需要设置LocalReport属性,否则在将报告分配给控件时需要使用ServerReport属性。

#1


0  

You need to make sure that the ProcessingMode property is set to Local or Remote depending on where the report will be hosted. If you set it to Local, you need to set the LocalReport property, otherwise you need to use the ServerReport property when assigning the report to the control.

您需要确保ProcessingMode属性设置为Local或Remote,具体取决于托管报告的位置。如果将其设置为Local,则需要设置LocalReport属性,否则在将报告分配给控件时需要使用ServerReport属性。