Last post Mar 19, 2014 11:24 PM by mskielin
Mar 08, 2014 04:34 PM|eng-mondy|LINK
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();
DataSet1 reget = GetData("select * from Members");
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())
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.
Mar 08, 2014 09:09 PM|dotnetzoom|LINK
I am not sure if you need to call RefreshReport() method after setting the datasource. Try that and see if it works.
Mar 09, 2014 05:32 AM|eng-mondy|LINK
I solved it . And anyone find another solution rather than below one, Please post it.
1) Go to this Path : C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319 .
2) Copy folder name crystalreportviewers13 , and iclude it in your web project.
3) At the Head form where you load and have the crystal report viewer call this java script file.
Mar 19, 2014 11:24 PM|mskielin|LINK
I met the issue before and solved it as : crystalReport.SetDataSource(reget.Table["DataTable1"]); or