public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { crTheThuVien rpt = new crTheThuVien(); rpt.Site = this.Site; return(rpt); }
private void btnOK_Click(object sender, EventArgs e) { SqlConnection Con = Conn.GetCon(); SqlCommand cmd = new SqlCommand(@"SELECT * from view_thethuvien where madocgia = '" + tbxMaDocGia.Text + "'", Con); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds); Report.crTheThuVien ttv = new Report.crTheThuVien(); ttv.SetDataSource(ds.Tables[0]); ttv.Refresh(); CRTheThuVien.ReportSource = ttv; CRTheThuVien.Refresh(); }