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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void btn_imprimerTous_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;

            switch (btn.Name)
            {
            case "btn_imprimerTous":
                RptFactureFournisseur r = new RptFactureFournisseur();
                r.SetDatabaseLogon("sa", "123456");
                Imprimer imprimer = new Imprimer(r);
                imprimer.ShowDialog();
                break;

            case "btn_imprimer":
                RptFactureFournisseur r1 = new RptFactureFournisseur();
                r1.SetDatabaseLogon("sa", "123456");
                string   filter    = "{facture.designation} = '" + dt_facture.CurrentRow.Cells[1].Value + "'";
                Imprimer imprimer1 = new Imprimer(r1, filter);
                imprimer1.ShowDialog();
                break;
            }
        }