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

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
 private void TxtCode_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (TxtCode.Text != "")
     {
         Etat_Employe_service cr = new Etat_Employe_service();
         crystalReportViewer1.ReportSource = cr;
         cr.SetDatabaseLogon("sa", "9090ubuntu.", "BILAL-PC", "Gestion_Employe");
         crystalReportViewer1.SelectionFormula = "{Service.Code}='" + TxtCode.Text + "'";
         cr.Refresh();
     }
 }