public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptRequests rpt = new rptRequests(); rpt.Site = this.Site; return(rpt); }
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; }