public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { report rpt = new report(); rpt.Site = this.Site; return(rpt); }
public void imprimer1() { con.Open(); SqlDataAdapter da = new SqlDataAdapter("select * from conge where N_dote='" + tdot.Text + "'", con); DataSet ds = new DataSet(); da.Fill(ds, "conge"); report r1 = new report(); r1.SetDataSource(ds); christal_report f = new christal_report(r1); f.Show(); con.Close(); }