I am facing a problem with showing my crystal report at my asp.net form. I traced my code its working and filling data in rows in the dataset. bellow the code.
protected void Page_Load(object sender, EventArgs e) { ReportDocument crystalReport = new ReportDocument(); crystalReport.Load(Server.MapPath("~/Report/Register.rpt")); DataSet1 reget = GetData("select * from Members"); crystalReport.SetDataSource(reget); CrystalReportViewer1.ReportSource = crystalReport; } private DataSet1 GetData(string query) { string conString = ConfigurationManager.ConnectionStrings["ConnectionStr"].ConnectionString; SqlCommand cmd = new SqlCommand(query); using (SqlConnection con = new SqlConnection(conString)) { using (SqlDataAdapter sda = new SqlDataAdapter()) { cmd.Connection = con; sda.SelectCommand = cmd; using (DataSet1 dsCustomers = new DataSet1()) { sda.Fill(dsCustomers, "DataTable1"); return dsCustomers; } } } }
and after the load complete of my asp.net from i get nothing a blank form. I inspected element of the page in Chome i got this Error in html.
Uncaught ReferenceError: bobj is not defined
Any help :) , Thanks.