Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tried much more from my side but crystal report not showing on webpage so please suggest what can i do. code bellow.
C#
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM tbl_CurrentStock", con);
                    DataSet1 dt = new DataSet1();
                    da.Fill(dt, "Report");
                    ReportDocument rd = new ReportDocument();
                    rd.SetDatabaseLogon("sa", "server@1", "(local)", "storedb");
                    rd.Load(Server.MapPath("CrystalReport1.rpt"));
                    rd.SetDataSource(dt.Tables["Report"]);
                    
                    CrystalReportViewer1.ReportSource = rd;
                    CrystalReportViewer1.DataBind(); 
Posted

1 solution

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