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(); }
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(); }