I got the problem in Crystal Report- Error Messsag

2019-09-15 07:27发布

I got the problem in Crystal Report- Error Messsage:Load report failed.

how to solve this issue??.

2条回答
beautiful°
2楼-- · 2019-09-15 07:49

You can call show data on report in DataBinding and Navigate methods.

protected void CrystalReportViewer1_DataBinding(object sender, EventArgs e)
{
    this.ShowReportData();
}  

protected void CrystalReportViewer1_Navigate(object source,  CrystalDecisions.Web.NavigateEventArgs e)
{
    this.ShowReportData();
}
查看更多
地球回转人心会变
3楼-- · 2019-09-15 07:56

If your report is running for awhile and then falls over make sure you Dispose it.......

if(myReport != null)
{
    myReport .Close();
    myReport .Dispose();
}
查看更多
登录 后发表回答