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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void PrintReport()
        {
            rCombinedLayCut oRpt = new rCombinedLayCut();

            ParameterFields        ps  = new ParameterFields();
            ParameterField         p   = new ParameterField();
            ParameterDiscreteValue pdc = new ParameterDiscreteValue();

            SetDBLogonForReport(oRpt);
            p.Name    = "@lbno";
            pdc.Value = clsDbForReports.pubLayBatNo;
            p.CurrentValues.Add(pdc);
            ps.Add(p);
            crystalReportViewer1.ParameterFieldInfo = ps;
            crystalReportViewer1.ReportSource       = oRpt;
            crystalReportViewer1.Show();
        }
Exemple #3
0
        private void printHDR()
        {
            rCombinedLayCut oRpt = new rCombinedLayCut();

            ParameterFields        ps  = new ParameterFields();
            ParameterField         p   = new ParameterField();
            ParameterDiscreteValue pdc = new ParameterDiscreteValue();

            SetDBLogonForReport(oRpt);
            p.Name    = "@lbno";
            pdc.Value = Convert.ToInt32(cmbLayerBatchNo.SelectedValue);
            p.CurrentValues.Add(pdc);
            ps.Add(p);
            crystalReportViewer1.ParameterFieldInfo = ps;
            crystalReportViewer1.ReportSource       = oRpt;
            crystalReportViewer1.Show();
        }