コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            PRINTCONGE rpt = new PRINTCONGE();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        public void imprimer()
        {
            c.connecter();
            SqlDataAdapter da = new SqlDataAdapter("select * from conge where N_conge='" + tnconge.Text + "'", c.con);
            DataSet        ds = new DataSet();

            da.Fill(ds, "conge");
            PRINTCONGE m = new PRINTCONGE();

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

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