Пример #1
0
        private void btnBonCmd_Click(object sender, EventArgs e)
        {
            Report_Viewer_Form frm = new Report_Viewer_Form();

            DataSet Data_Set = SqlServer_Classes.getBonCommande(codeCommande);

            BonCommande reportCommande = new BonCommande();

            reportCommande.SetDataSource(Data_Set);

            frm.Text = "Bon De Commande N°= " + codeCommande;
            frm.crystalReportViewer1.ReportSource = reportCommande;
            frm.Show();
        }
Пример #2
0
        private void btnPrintBonCmd_Click(object sender, EventArgs e)
        {
            Report_Viewer_Form frm = new Report_Viewer_Form();

            frm.Text = "Bon De Commande N°= " + lblCodeCommande.Text;

            DataSet set = SqlServer_Classes.getBonCommande(int.Parse(lblCodeCommande.Text));

            BonCommande reportCommande = new BonCommande();

            reportCommande.SetDataSource(set);

            frm.crystalReportViewer1.ReportSource = reportCommande;
            frm.Show();
        }