コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptStyleProdBatch rpt = new rptStyleProdBatch();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        void StyleBatchStatus()
        {
            rptStyleProdBatch      oRpt = new rptStyleProdBatch();
            ParameterFields        ps   = new ParameterFields();
            ParameterField         p    = new ParameterField();
            ParameterDiscreteValue pdc  = new ParameterDiscreteValue();

            SetDBLogonForReport(oRpt);

            p.Name    = "@stc";
            pdc.Value = cmbstylecost.Text;
            p.CurrentValues.Add(pdc);
            ps.Add(p);

            crystalReportViewer1.ParameterFieldInfo = ps;
            crystalReportViewer1.ReportSource       = oRpt;
            crystalReportViewer1.Show();
        }