Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptRequests rpt = new rptRequests();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void crystalReportViewer1_Load(object sender, EventArgs e)
        {
            rptRequests rptRequests1 = new rptRequests();

            rptRequests1.SetParameterValue("pProcessedBy", AdminName);
            rptRequests1.SetParameterValue("pDateBorrowed", DateTime.Now.ToShortDateString());
            rptRequests1.SetParameterValue("pPending", Pending);
            rptRequests1.SetParameterValue("pNew", New);
            crystalReportViewer1.ReportSource = rptRequests1;
        }