如何使用工具栏在水晶报表中导航页面? [英] How to navigate page in crystal report using toolbar?

查看:64
本文介绍了如何使用工具栏在水晶报表中导航页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在水晶报表中使用工具栏导航页面。我在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?

推荐答案

我通过绑定解决了这个问题在Page_Init方法中再次报告。



I solved this problem by just binding report again in Page_Init method.

if (!this.IsPostBack)
        {

        }
        else
        {
            if (Session["reportdocument"] != "N/A")
            {
                ReportDocument reportdocument = (ReportDocument)Session["reportdocument"];
                CrvATPostingSummary.ReportSource = reportdocument;
                CrvATPostingSummary.DataBind();
            }
        }


这篇关于如何使用工具栏在水晶报表中导航页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆