问题描述
我想在水晶报表中使用工具栏导航页面。我在Page_Init方法中编写了代码。
protected void Page_Init(object sender,EventArgs e)
{
ReportDocument reportdocument = new ReportDocument();
reportdocument =(ReportDocument)Session [reportDocument];
CrvATPostingSummary.ReportSource = reportdocument;
}
但它显示错误,如缺少参数值。
如何解决这个问题?
I want to navigate page using toolbar in crystal report. I wrote code in Page_Init method.
protected void Page_Init(object sender, EventArgs e)
{
ReportDocument reportdocument = new ReportDocument();
reportdocument = (ReportDocument)Session["reportDocument"];
CrvATPostingSummary.ReportSource = reportdocument;
}
But it shows error like, Missing Parameter values.
How to solve this problem?
推荐答案
if (!this.IsPostBack)
{
}
else
{
if (Session["reportdocument"] != "N/A")
{
ReportDocument reportdocument = (ReportDocument)Session["reportdocument"];
CrvATPostingSummary.ReportSource = reportdocument;
CrvATPostingSummary.DataBind();
}
}
这篇关于如何使用工具栏在水晶报表中导航页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!