cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports Printing error

0 Kudos
1,122

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

Accepted Solutions (0)

Answers (5)

Answers (5)

0 Kudos

now it works also with the reports including parameters, my parameters have been wrong, they

did not exists in my database. once i fixed them, everything is fine.

0 Kudos

update: i tested with another report which has no input parameter, this one worked and was printed out on the same printer as in the one in the first post.

0 Kudos

i forgot to upload the screenshots

0 Kudos

hi dell,

the printer is already defined on the windows 2016 server, or do I miss something?

BR René

DellSC
Active Contributor
0 Kudos

Because of changes to Windows security, you must have the printer defined in the printers for the server, otherwise you will not be able to print.

-Dell