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