Microsoft Report Viewer Control不显示报告

时间:2022-08-09 08:16:59

I have built a simple report and run it successfully in test winform apps but when I try to run the same report in my production winforms application, the report just doesn't show up in the viewer. I look at the ReportViewer control after InitializeComponent and everything looks fine.

我已经构建了一个简单的报告并在测试winform应用程序中成功运行它,但是当我尝试在我的生产winforms应用程序中运行相同的报告时,报告中没有显示该报告。我在InitializeComponent之后查看ReportViewer控件,一切看起来都很好。

Are there debugging techniques or gotcha's that might be able to point me to why the report is not showing. It feels like there should be an error of some sort but it just displays a blank form.

是否有调试技巧或问题可能能够指出报告未显示的原因。感觉应该有某种错误,但它只显示一个空白表格。

1 个解决方案

#1


0  

This was a simple mistake.

这是一个简单的错误。

In implementing the report viewer in a MVP environment, I managed to not notice/implement the RefreshReport in the Form Load. Once I called Refresh Report, the report showed up.

在MVP环境中实现报表查看器时,我设法在Form Load中没有注意到/实现RefreshReport。一旦我打电话给刷新报告,报告就出现了。

#1


0  

This was a simple mistake.

这是一个简单的错误。

In implementing the report viewer in a MVP environment, I managed to not notice/implement the RefreshReport in the Form Load. Once I called Refresh Report, the report showed up.

在MVP环境中实现报表查看器时,我设法在Form Load中没有注意到/实现RefreshReport。一旦我打电话给刷新报告,报告就出现了。