Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            PRINTNAISSENCE rpt = new PRINTNAISSENCE();

            rpt.Site = this.Site;
            return(rpt);
        }
        //imprimer 2
        public void imprimer2()
        {
            c.connecter();
            SqlDataAdapter da = new SqlDataAdapter(" select * from conge c inner join employe e on e.N_dote=c.N_dote where N_conge='" + tnconge.Text + "'", c.con);

            da = new SqlDataAdapter(" select * from employe e inner join conge c on e.N_dote=c.N_dote", c.con);
            DataSet ds = new DataSet();

            da.Fill(ds, "employe");
            da.Fill(ds, "conge");
            PRINTNAISSENCE PS = new PRINTNAISSENCE();

            PS.SetDataSource(ds);
            REPORTVIEW f = new REPORTVIEW(PS);

            f.Show();
            c.deconnecter();
        }