I have windows service build on .net framework 4.7.1, that prints crystal reports. Recently, the service was migrated to Crystal runtime 13.0.28 (64 bit) on windows server 2019. The reports are failing with the below error. The report prints fine with 13.0.22 (32 bit) version of the engine on another server (windows server 2016). I did some research in the forum but did not see one with a similar problem.
system.NullReferenceException: Object reference not set to an instance of an object. 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)
Request clarification before answering.
Hello,
Please upgrade the visual Studio re-distributable, it should resolve your issue.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.