Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

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

$
0
0

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());
            }
        }


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>