Skip to Content
0
Feb 10, 2020 at 04:45 PM

Crystal Reports Printing error

764 Views

i setup my print solution on a new win 2016 Server, the old one win 2008 runs fine.

If I run a report on the 2016 Server i get an error, anyone has an idea whats going wrong?

there are some messages from my code printed.

17:42:43.19: Can't print report :
CrystalDecisions.CrystalReports.Engine.InternalException:
Fehler beim Öffnen der Verbindung.
versandlabel {D66D1380-6CD6-465D-AEB6-067CBB3BD821}.rpt ---> System.Runtime.InteropServices.COMException:
Fehler beim Öffnen der Verbindung.
versandlabel {D66D1380-6CD6-465D-AEB6-067CBB3BD821}.rpt
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.HandleException(Exception exception)
at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at Reporter.RenderReport.PrintReport(ReportDocument report, String filename, Hashtable parameters, PrpoDao line, DrukDao printer, RevoDao template, Int32 noCopies, PaperSource pkSource, String mergePdf, String mergeFilename)
base exception:
System.Runtime.InteropServices.COMException (0x800002F4):
Fehler beim Öffnen der Verbindung.
versandlabel {D66D1380-6CD6-465D-AEB6-067CBB3BD821}.rpt
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
17:42:43.19: Can not print: Print report is false

I call it like this:

RenderReport renReport = new RenderReport(prko.PrinterName, cdsn, cuid, cpwd, log);
result = renReport.PrintReport(
repAll,
FullFilename,
dbManager.getAllParameters(line, log),
line,
printer,
berichtVorlage,
copies,
pkSource,
prko.mergePdf,
mergePartFilename);