Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptDailyProductionEmploywise1 rpt = new rptDailyProductionEmploywise1();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void printDailyEmp1()
        {
            rptDailyProductionEmploywise1 oRpt = new rptDailyProductionEmploywise1();
            ParameterFields        ps          = new ParameterFields();
            ParameterField         p           = new ParameterField();
            ParameterDiscreteValue pdc         = new ParameterDiscreteValue();

            SetDBLogonForReport(oRpt);
            p.Name    = "@dt";
            pdc.Value = dtpProdDate1.Value;
            p.CurrentValues.Add(pdc);
            ps.Add(p);
            crystalReportViewer1.ParameterFieldInfo = ps;
            crystalReportViewer1.ReportSource       = oRpt;
            crystalReportViewer1.Show();
        }