Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptCDrawer rpt = new rptCDrawer();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void frmRptCDrawer_Load(object sender, EventArgs e)
        {
            rptCDrawer            rep = new rptCDrawer();
            npos_dbDataSet        ds  = new npos_dbDataSet();
            pos_cdlogTableAdapter adp = new pos_cdlogTableAdapter();

            adp.Fill(ds.pos_cdlog);
            rep.SetDataSource(ds);
            rep.SetParameterValue("dateParam", Convert.ToDateTime(DateParam).ToString("yyyy-MM-dd"));
            rep.SetParameterValue("terminalParam", TerminalParam);
            crystalReportViewer1.ReportSource = rep;
        }