Beispiel #1
0
        private void printDailyEmp2()
        {
            rptDailyProductionEmploywise oRpt = new rptDailyProductionEmploywise();
            ParameterFields        ps         = new ParameterFields();
            ParameterField         p          = new ParameterField();
            ParameterDiscreteValue pdc        = new ParameterDiscreteValue();

            SetDBLogonForReport(oRpt);
            p.Name    = "@dt";
            pdc.Value = dtpProdDate2.Value;
            p.CurrentValues.Add(pdc);
            ps.Add(p);

            ParameterField         p1   = new ParameterField();
            ParameterDiscreteValue pdc1 = new ParameterDiscreteValue();

            p1.Name    = "@stc";
            pdc1.Value = cmbStyle.Text;
            p1.CurrentValues.Add(pdc1);
            ps.Add(p1);

            crystalReportViewer1.ParameterFieldInfo = ps;
            crystalReportViewer1.ReportSource       = oRpt;
            crystalReportViewer1.Show();
        }
Beispiel #2
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptDailyProductionEmploywise rpt = new rptDailyProductionEmploywise();

            rpt.Site = this.Site;
            return(rpt);
        }