public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptInvoiceReport rpt = new rptInvoiceReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
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;
        }