1

I have created a windows form application and added a local database on it and a crystal report and a crystal report viewer. here is the code

private void crystalReportViewer1_Load(object sender, EventArgs e)

 {           
        CrystalReport2 rpt = new CrystalReport2();

        SqlDataAdapter da = new SqlDataAdapter("select * from cus_info", conn);
        DataSet1 ds = new DataSet1();
        report r = new report();
        da.Fill(ds, "cus_info");
        rpt.SetDataSource(ds);
        crystalReportViewer1.ReportSource = rpt;
        ShowDialog();
        //crystalReportViewer1.Refresh(); 
    }

but crystal report shows nothing after debuging the program.

souravds
  • 31
  • 4

0 Answers0