private void button3_Click(object sender, EventArgs e)
        {
            StudentList rprt = new StudentList();

            SqlCommand cmd = new SqlCommand("spGetAllStudentAndCourse", con);

            cmd.CommandType = CommandType.StoredProcedure;
            SqlDataAdapter sda = new SqlDataAdapter(cmd);
            DataSet        ds  = new DataSet();

            sda.Fill(ds, "Newtbl_data");
            rprt.SetDataSource(ds);
            d.crystalReportViewer1.ReportSource = rprt;
            d.ShowDialog();



            //third_party_details   New CrystalReport1

            //    StudentList  third_party_details=new StudentList ();

            ////third_party_details.SetDataSource(ds.Tables("asdas"));

            //ReportViewer  viewer_lll= new ReportViewer() ;



            //viewer_lll.Text = "Patient Prescription";
            //  crystalReportViewer1.ReportSource = third_party_details;

            //viewer_lll.Show();
        }
Beispiel #2
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            StudentList rpt = new StudentList();

            rpt.Site = this.Site;
            return(rpt);
        }