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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        void reci()
        {
            ReciptPrintReport R = new ReciptPrintReport();

            R.SetParameterValue("Name", rec.nametb.Text);
            R.SetParameterValue("Date", rec.dateTP.Text);
            R.SetParameterValue("receivedFrom", rec.RfromCB.Text);
            R.SetParameterValue("Amount", rec.priceTb.Text);
            R.SetParameterValue("amountIW", rec.priceIWCB.Text);
            R.SetParameterValue("description", rec.discription.Text);
            R.SetParameterValue("cashCheque", rec.categoryCB.Text);
            crystalReportViewer1.ReportSource = R;
            crystalReportViewer1.Refresh();
        }