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