Skip to Content
1
Jun 15, 2020 at 12:15 PM

Crystal reports and Diapi in visual studio 2019 not working together

298 Views Last edit Jun 15, 2020 at 12:59 PM 2 rev

Hi,

Hope someone can help me with the following problem.

Last week we installed a new development server, version 2019. With visual studio 2019, Crystal reports 2016, Crystal reports for Visual Studio (Latest Version 27) and SAPb1 version 9.3 Pl04. I had no problems during installation.

All the applications in which i use to connect to de DIapi are working fine, but when I try to print a report i receive an error from crystal reports saying.

Could not load C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\crpe32.dll.

At first i thought crystal reports for visual studio wasn't installed correctly, did some reinstallations. But nothing helped.
Then started an empty crystal report project, and this one worked!. Added my libraries to the project and it still worked.
But then i added the code to connect to a Company with the DIapi, and the problem was back.

For some reason i cannot print reports and use the diapi at the same time. When i connect to the diapi first, i cannot print reports, and when i print a report, i cannot connect to a company with the diapi.

Has anyone come across this same problem?