cancel
Showing results for 
Search instead for 
Did you mean: 

When I click to navigate to the next page i get "Please wait while the document is being processed"

Former Member
0 Kudos

I am creating a report in a ASP.NET application. I have some bills created, and when I click on a next page, it shows me Please wait while the document is being processed" message. How can I fix this?

This is my code for creating the report:

protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                bool isValid = true;


                string repName = HttpContext.Current.Session["repName"].ToString();
                int zgradaID = (int)HttpContext.Current.Session["id_zgrade"];
                int mesec = (int)HttpContext.Current.Session["mesec"];
                int godina = (int)HttpContext.Current.Session["godina"];


                if (string.IsNullOrEmpty(repName))
                    isValid = false;


                if (isValid)
                {


                    ReportDocument rd = new ReportDocument();
                    string repPath = Server.MapPath("~/Izvestaji/") + repName;


                    rd.Load(repPath);


                    Izvestaji.IzvestajiRep irep = new Izvestaji.IzvestajiRep();
                   
                    rd.SetDataSource(irep.StampanjeRacunaDS(zgradaID,mesec,godina));


                   


                    this.CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
                    CrystalReportViewer1.ReportSource = rd;




                    Session["repName"] = "";
                    Session["id_zgrade"] = "";
                    Session["mesec"] = "";
                    Session["godina"] = "";
                   




                }
                else
                {
                    Response.Write("<h2>Izvestaj nije pronadjen!</h2>");
                }


            }
            catch (Exception ex)
            {


                Response.Write(ex.ToString());
            }
        }

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Changes to the Standards require you to load CR pages in Page_Init section now.

And to keep the report in scope you must use Sessions and PostBack so the report stays in focus.

Use Google and search for this KBA:

1985571 - How to use sessions in web applications using the Crystal Reports viewer (the complete cod...

Don

Answers (0)