Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            PRINTCONGEEXCEPTIONELE_NAISSENCE_A rpt = new PRINTCONGEEXCEPTIONELE_NAISSENCE_A();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void imprimer1()
        {
            c.connecter();
            SqlDataAdapter da = new SqlDataAdapter("select * from conge where N_dote='" + tdot.Text + "'", c.con);
            DataSet        ds = new DataSet();

            da.Fill(ds, "conge");
            PRINTCONGEEXCEPTIONELE_NAISSENCE_A r1 = new PRINTCONGEEXCEPTIONELE_NAISSENCE_A();

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

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