Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            report_F rpt = new report_F();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        //imprimer 2
        public void imprimer2()
        {
            con.Open();
            SqlDataAdapter da = new SqlDataAdapter("select * from conge where N_dote='" + tdot.Text + "'", con);
            DataSet        ds = new DataSet();

            da.Fill(ds, "conge");
            report_F r2 = new report_F();

            r2.SetDataSource(ds);
            christal_report f = new christal_report(r2);

            f.Show();
            con.Close();
        }
Example #3
0
        //imprimer 2
        public void imprimer2()
        {
            con.Open();
            SqlDataAdapter da = new SqlDataAdapter(" select * from conge c inner join employe e on e.N_dote=c.N_dote where N_conge='" + tnconge.Text + "'", con);

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

            da.Fill(ds, "employe");
            da.Fill(ds, "conge");
            report_F r2 = new report_F();

            r2.SetDataSource(ds);
            christal_report f = new christal_report(r2);

            f.Show();
            con.Close();
        }