Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            badgeReport rpt = new badgeReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void btnAllPrint_Click(object sender, EventArgs e)
        {
            string      Path  = Application.StartupPath;
            badgeReport badge = new badgeReport();

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

            if (groupeComboBox != null && groupeComboBox.SelectedValue != null)
            {
                string idGroupe = groupeComboBox.SelectedValue.ToString();
                filtre = "{Etudiant.idGroupe} = " + idGroupe;
                frmImpression print = new frmImpression(badge, filtre);
                print.ShowDialog();
            }
            else
            {
                MessageBox.Show("Veuliez selectionner un groupe!");
            }
        }
Ejemplo n.º 3
0
        private void singlePrint_Click(object sender, EventArgs e)
        {
            string      Path  = Application.StartupPath;
            badgeReport badge = new badgeReport();

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

            if (etudiantDataGridView != null && etudiantDataGridView.DataSource != null && etudiantDataGridView.CurrentRow != null)
            {
                string idEtudiant = etudiantDataGridView.CurrentRow.Cells[0].Value.ToString();
                filtre = "{Etudiant.idEtudiant} = " + idEtudiant;
                frmImpression print = new frmImpression(badge, filtre);
                print.ShowDialog();
            }
            else
            {
                MessageBox.Show("Veuliez selectionner un etudiant!");
            }
        }