Crystal Report doesnt display in ASP.net webpage which is build by using VS 2015

Last Reply 16 days ago By Mudassar

Posted 16 days ago

Dear Sir,

I have the issue on the reporting that are mentioned on subject please help me on this issue i am very thankfull to you.

 

Best Regrad's 

Rizwna Ashraf

ReportDocument rprt = new ReportDocument();

        protected void Page_Load(object sender, EventArgs e)
        {
            string WebCon = ConfigurationManager.ConnectionStrings["pc"].ConnectionString;

            rprt.Load(Server.MapPath("~/Reports/CrystalReport1.rpt"));

            SqlConnection con = new SqlConnection(WebCon);
            con.Open();
            SqlCommand cmd = new SqlCommand("SELECT UserName,Password from tblusers", con);
            SqlDataAdapter sda = new SqlDataAdapter(cmd);
            DataSet ds = new DataSet();
            sda.Fill(ds, "dtUser");
            rprt.SetDataSource(ds);
            this.CrystalReportViewer1.ReportSource = rprt;

 

You are viewing reply posted by: Mudassar 16 days ago.
Posted 16 days ago

When you say Not Helpful. First check whether you have described your problem clearly.

You have not reported any error. Nor explained properly.

Kindly do that then only further help can be provided.

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html