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

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void Btn_Stg_Click(object sender, EventArgs e)
        {
            string req = @"select st.numStg,st.nomStg,st.prenomStg,st.dateNStg,gr.nomGrp,gr.annee,fl.nomFlr,fl.niveauFlr 
                from stagaire st join groupe gr on st.numGrp=gr.numGrp join Filiere fl on fl.numflr=gr.numflr 
                where numStg='" + cbx_stagaire.SelectedValue + "'";

            Imprimer.AttestationStagaire cr = new Imprimer.AttestationStagaire();
            cr.SetDataSource(Program.exec_select(req));
            crystalReportViewer4.ReportSource = cr;
        }