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

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        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;
        }