Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
crystal report toolbar problem
------------------------------





when i click next page in my report and i am sure that there is another page
this message appear and there is not any page appear message

"please wait while document processed"

and this occur on all toolbar button


image

this is code in page load
C#
<pre> protected void Page_Load(object sender, EventArgs e)
    {


        Title = "عرض التقارير";
        if (Session["UserCode"] == null) Response.Redirect("~/Login.aspx");


        if (Request.QueryString["id"] != null)
        {
            oReport = new Cls_Report();
            oReportDocument = new ReportDocument();

            if (!Session["Condition"].Equals(null))
            {
                oReport.Condition = Session["Condition"].ToString();
                Session.Remove("Condition");
            }
            switch (Request.QueryString["id"])
            {
                    
                case "1":
                    oReportDocument.Load(Server.MapPath("~/reports/ar1.rpt"));
                    oReportDocument.SetDataSource(oReport.ReportAllEmployees(false));
                    break;

                case "2":
                    oReportDocument.Load(Server.MapPath("~/reports/ar2.rpt"));
                    oReportDocument.SetDataSource(oReport.ReportAlljpbs());
                    break;

                case "1order":
                    oReportDocument.Load(Server.MapPath("~/reports/ar1.rpt"));
                    oReportDocument.SetDataSource(oReport.ReportAllEmployees(true));
                    break;
                case "3":
                    oReportDocument.Load(Server.MapPath("~/reports/ar3.rpt"));
                    oReportDocument.SetDataSource(oReport.ReportAlljudges());
                    break;
                case "4":
                    oReportDocument.Load(Server.MapPath("~/reports/ar4.rpt"));
                    oReportDocument.SetDataSource(oReport.ReportAlljudgesindestrict());
                    break;

                case "5":
                    oReportDocument.Load(Server.MapPath("~/reports/ar5.rpt"));
                    oReportDocument.SetDataSource(oReport.ReportAlljudgesRank());
                    break;

            }
            ReportViewer.ReportSource = oReportDocument;
            
        }


    }</pre>
Posted
Updated 16-Apr-12 21:36pm
v2
Comments
Nelek 16-Apr-12 17:42pm    
Is it your page? If yes, would you mind to post a bit of the relevant code?
nagiub2007 18-Apr-12 11:06am    
can any one help me
ShaikhM 9-May-12 0:36am    
I suspect it is not a problem with Crystal. I think it has something to do with the query that you wrote. Try running a sql profiler and see whats happening behind when the report shows "In Progress". That will tell you where to start.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900