public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalBadge1 rpt = new CrystalBadge1();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            CrystalBadge1 cb = new CrystalBadge1();

            cb.SetDataSource(badgeDataSet);
            cb.SetParameterValue("ch", Application.StartupPath);
            string   filter = "{Groupe.IdGroupe} = " + (groupeComboBox.SelectedIndex + 1);
            Imprimer i      = new Imprimer(cb, filter);

            i.ShowDialog();
        }