Exemplo n.º 1
0
        void styleSizesum()
        {
            rptActVsSizeQty33      oRpt = new rptActVsSizeQty33();
            ParameterFields        ps   = new ParameterFields();
            ParameterField         p    = new ParameterField();
            ParameterDiscreteValue pdc  = new ParameterDiscreteValue();

            SetDBLogonForReport(oRpt);
            p.Name    = "@dt1";
            pdc.Value = Convert.ToDateTime(dtpfrom1.Value.ToShortDateString());
            p.CurrentValues.Add(pdc);
            ps.Add(p);

            ParameterField         p2   = new ParameterField();
            ParameterDiscreteValue pdc2 = new ParameterDiscreteValue();

            p2.Name    = "@dt2";
            pdc2.Value = Convert.ToDateTime(dtpto1.Value.ToShortDateString());
            p2.CurrentValues.Add(pdc2);
            ps.Add(p2);

            ParameterField         p3   = new ParameterField();
            ParameterDiscreteValue pdc3 = new ParameterDiscreteValue();

            p3.Name    = "@stc";
            pdc3.Value = cmbStyleDI.Text;
            p3.CurrentValues.Add(pdc3);
            ps.Add(p3);

            crystalReportViewer1.ParameterFieldInfo = ps;
            crystalReportViewer1.ReportSource       = oRpt;
            crystalReportViewer1.Show();
        }
Exemplo n.º 2
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptActVsSizeQty33 rpt = new rptActVsSizeQty33();

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