首页 文章

水晶报告问题

提问于
浏览
0

在按钮选择索引更改我生成了一个报告,报告的第一页显示正确的结果,但当我导航到第二页水晶报告消失的原因,请让我知道

protected void studentList_SelectedIndexChanged(object sender,EventArgs e){int studentId = Convert.ToInt32(studentList.SelectedValue); ReportDocument report = new ReportDocument(); report.Load(使用Server.Mappath( “StudentResume.rpt”)); DataTable tbl_students; tbl_students = resumeManager.GetStudentListForCrystalRpt(studentId); report.SetDataSource(tbl_students); studentResumeCrViwer.ReportSource = report; // studentResumeCrViwer . }

1 回答

  • 0

    您是否在同一页面上有报告查看器?我遇到了一个类似的问题,我在page_load中进行了报告绑定,点击了页面导航,页面重新加载,导致导航失败 . 将绑定移动到page_init解决了这个问题 . 在这里,我看到页面被重新加载, Spectator 也会消失 .

相关问题