Problem with crystal reports

1

I made an application that includes CrystalReports and it works well, the problem comes when I create the executable and install it on another computer, the application is installed and everything but when I click on the button that works as a viewer of my reports this error appears :

  

An exception occurred in the type initializer   'CrystalDecisions.CrystalReports.Engine.ReportDocument'

Use visual studio 2017 and cr for visual studio

    
asked by Kabir Alberto 22.03.2018 в 22:49
source

2 answers

0

I was able to solve my problem, I just had to install

  

CRRuntime_64bit_13_0_22

I guess that for those who have the same error it is solved in the same way.

    
answered by 23.03.2018 / 00:32
source
0

When you use CrystalReports to make your projects do not forget that this is paid , so you must buy the license, in addition to having versions for development and another client strong>, in addition to having versions of x86 and x64 .

But hey, the problem may be in:

  

1 .- You did not add the CrystalReports installer to the installer of your application.
2 .- You are not installing the correct version of CrystalReports , this in the sense that if it is x86 or x64.
3 .- You are not installing the client version , since the developer version necessarily requires that the Visual Studio components are installed locally.

The solution is simple.

  • Add the installer CrystalReports in its correct version that is the client, inside the installer of your system (which is what many do).
  • Install CrystalReports in its correct version separately, ie before or after installing your system, but keep in mind that you should place it as a requirement for your system.
  • Use / add the dll of CrystalReports client as a reference in your project at the time of development, avoiding the previous steps.
  • answered by 22.03.2018 в 23:42