Click here to Skip to main content
15,890,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I'm using Crystal Report SP26. VS2019 C# and ASP.NET WEBFORMS
I want to show progress bar while query executing.
I'm executing crystal report on PDF.
I really don't have an idea. The samples I encountered here is for winforms.

Below are the only codes I have. Please help thanks.

What I have tried:

ReportDocument rptdoc = new ReportDocument();

private void LoadReports()
        {


            using (ReportServicesClient rptservices = new ReportServicesClient())
            {
              if (Session["ReportID"].Equals(2))
                {

                    COE coe = new COE();
                    coe.PersonID = Convert.ToInt32(Session["PersonID"]);
                    DataTable dt = rptservices.GetCertificateOfEmployment(coe);                   
                    string reportname = @"\Reports\Certificates\CertificateOfEmployment.rpt";

                    rptdoc.Load(Server.MapPath(reportname));

                    rptdoc.DataSourceConnections.Clear();
                    rptdoc.SetDataSource(dt);
                    rptdoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, HttpContext.Current.Response, false,"" )");
                }
	   }
}
Posted
Updated 18-Aug-20 21:57pm

1 solution

Given you are running the reports programmatically and then displaying it, you need to show the progress/loading experience while this long process of generating report happens.

There are multiple ways to do it. Few examples
1. Customizable 'Loading' Control for Web Applications with Designer Support[^]
2. Show loading image while Page is loading using jQuery | jQuery By Example[^]
 
Share this answer
 

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