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(); }
public static CrystalDevis getInstanceCrystalReport() { if (cd == null || cd.IsDisposed) { cd = new CrystalDevis(); } return(cd); }