Example #1
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            //Cursor = Cursors.WaitCursor;
            //timer1.Enabled = true;
            BusinessManager BM = new BusinessManager();
            BOSales         BO = new BOSales();

            BO.InvoiceNo = txtInvoiceNo.Text;
            rptInvoiceReport rpt = new rptInvoiceReport();

            rpt.SetDataSource(BM.BALInvoiceReport(BO));
            frmInvoiceReport frm = new frmInvoiceReport();

            frm.crystalReportViewer1.ReportSource = rpt;
            frm.Visible = true;
        }