public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptSR rpt = new rptSR(); rpt.Site = this.Site; return(rpt); }
private void frmRptSR_Load(object sender, EventArgs e) { rptSR rep = new rptSR(); npos_dbDataSet ds = new npos_dbDataSet(); pos_storeTableAdapter adp = new pos_storeTableAdapter(); adp.Fill(ds.pos_store); rep.SetDataSource(ds); rep.SetParameterValue("dateParam", Convert.ToDateTime(DateParam).ToString("yyyy-MM-dd")); rep.SetParameterValue("terminalParam", TerminalParam); crystalReportViewer1.ReportSource = rep; }