【发布时间】:2021-09-14 00:59:30
【问题描述】:
大家好!希望你们一切顺利,我正在做我最后一年的项目,但我被困在最后一个阶段,即报告。我尝试使用 this 教程使用 RDLC 报告。
但是当我运行时它给了我这个错误;
An Error Occured during local error processing
The report definition for report "report1" has not been specified
Object reference not set to an instance of an object.
这是我的示例报告(我使用报告查看器的简单形式)代码;
using System;
using System.Windows.Forms;
namespace StockRegisterManagementSystem.Views
{
public partial class SampleReportForm : Form
{
public SampleReportForm()
{
InitializeComponent();
}
private void SampleReportForm_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'sampleDataSet1.item_procedure' table. You can move, or remove it, as needed.
this.item_procedureTableAdapter.Fill(this.sampleDataSet.item_procedure);
this.reportViewer1.RefreshReport();
}
}
}
我已经在 StackOverflow
上看到了以下答案The report definition for report ' ' has not been specified
你知道当你处于最后阶段但无法继续前进时是多么痛苦????????????。
提前致谢 ;)
【问题讨论】:
-
在底部附近的以下站点检查答案。 social.msdn.microsoft.com/Forums/en-US/…
-
那个答案在我的情况下不起作用,或者我可能没有深入理解这个问题。
标签: c# visual-studio entity-framework stored-procedures rdlc