on 2020 Feb 10 4:45 PM
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);
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi dell,
the printer is already defined on the windows 2016 server, or do I miss something?
BR René
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.