public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rPrintTag rpt = new rPrintTag(); rpt.Site = this.Site; return(rpt); }
private void TagPrint() { rPrintTag oRpt = new rPrintTag(); SetDBLogonForReport(oRpt); oRpt.SetParameterValue(0, clsDbForReports.pubLayBatNo); oRpt.SetParameterValue(1, cmbLetters.Text); oRpt.SetParameterValue(2, Convert.ToInt32(cmbParts.SelectedValue)); oRpt.SetParameterValue(3, Convert.ToInt32(txtBunFrom.Text)); oRpt.SetParameterValue(4, Convert.ToInt32(txtBunTo.Text)); oRpt.PrintOptions.PrinterName = "Datamax-O'Neil E-4204B Mark III"; oRpt.PrintToPrinter(1, false, 1, -1); }