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

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
 private void bprint_Click(object sender, EventArgs e)
 {
     try
     {
         c.connecter();
         SqlDataAdapter da = new SqlDataAdapter("select * from employe e inner join conge c on e.N_dote=c.N_dote", c.con);
         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);
         DataSet ds = new DataSet();
         da.Fill(ds, "employe");
         da.Fill(ds, "conge");
         c.deconnecter();
         PRINTCONGEANUEL pnt = new PRINTCONGEANUEL();
         pnt.SetDataSource(ds);
         REPORTVIEW f = new REPORTVIEW(pnt);
         f.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }