cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal engine 13.0.28 (64 bit)- Object reference error

08-31-2020 11:01 PM
1979 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

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)
0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

Problem was that the code was referencing 13.0.22 version of CrystalDecisions dlls. It is working fine after updating the dlls.

Former Member
0 Likes

The reports were updated in the 13.0.28 version of VS IDE before we tried printing through the new crystal runtime.

msundararaja_perumal
Active Contributor
0 Likes

Hello,

Please upgrade the visual Studio re-distributable, it should resolve your issue.

Thanks.