Exemple #1
0
        private void buttonImprimer_Click(object sender, EventArgs e)
        {
            CrystalDevis cd     = CrystalDevis.getInstanceCrystalReport();
            int          devisN = Convert.ToInt32(this.metroGrid.CurrentRow.Cells[0].Value.ToString());

            cd.BindReport(devisN);
            cd.Show();
        }
Exemple #2
0
        public static CrystalDevis getInstanceCrystalReport()
        {
            if (cd == null || cd.IsDisposed)
            {
                cd = new CrystalDevis();
            }

            return(cd);
        }