Hi All,
I trying to use crystal report in my visual studio 2012 ultimate edition.
But , I am getting error as logon failed.
So i use another turn around as below:
private void Page_Init(object sender, EventArgs e) { ConfigureCrystalReports(); } private void ConfigureCrystalReports() { customerReport = new ReportDocument(); string reportPath = Server.MapPath("CrystalReport.rpt"); customerReport.Load(reportPath); string constring = ConfigurationManager.ConnectionStrings["mycon"].ConnectionString; SqlConnection con = new SqlConnection(constring); con.Open(); DataSet ds = new DataSet(); string selqry = "select * from insertstable"; SqlDataAdapter adp = new SqlDataAdapter(selqry, con); adp.Fill(ds); customerReport.SetDataSource(ds); CrystalReportViewer1.ReportSource = customerReport; }
But here in this case after providing all the logon details i am getting blank in the dataset.
I debugged the code it runs till last statement without error but i get blank in the dataset and i get blank sap crystal report with only headings of the columns.
It is crossing all the statements of the database connectivity but stll blank in the dataset even thought there is data in the table.
Please help me as if i missing any thing in the code.
Regards,
Jayesh.(From India,Mumbai)