示例#1
0
        private void PrintPurchase_Click(object sender, EventArgs e)
        {
            RPT.RPT_FORM frm = new RPT.RPT_FORM();
            string       I   = CLASS_FACTURE.MAXFACTURE();

            RPT.Facture raport = new RPT.Facture();
            raport.SetParameterValue("@NO_FACTURE", I);
            frm.crystalReportViewer1.ReportSource = raport;
            frm.ShowDialog();

            txtQtevendu.Clear();
            txtarticle.Clear();
            txtdesigniation.Clear();
            txtprice.Clear();
            txtQteStock.Clear();
            txtCodeclient.Clear();
            txtname.Clear();
            txtfirstname.Clear();
            txtsold.Clear();
            dgvFacture.Rows.Clear();
        }