예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            absentReport rpt = new absentReport();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        private void btnAbsence_Click(object sender, EventArgs e)
        {
            absentReport absent = new absentReport();

            absent.SetDataSource(projectExamDataSet);
            //absent.SetParameterValue("path", Path);
            string filtre = "";

            if (nomGroupeComboBox != null && nomGroupeComboBox.SelectedValue != null)
            {
                string idGroupe = nomGroupeComboBox.SelectedValue.ToString();
                filtre = "{Etudiant.idGroupe} = " + idGroupe;
                frmImpression print = new frmImpression(absent, filtre);
                print.ShowDialog();
            }
            else
            {
                MessageBox.Show("Veuliez selectionner un groupe!");
            }
        }