I know the use of server-side controls is a no-no in ASP.NET MVC, however we have a long list of crystal reports that the company has already produced for a previous application that I would like to utilize for our new ASP.NET MVC application.
Is there an appropriate way to use crystal reports in ASP.NET MVC? If so, how?
We had/have a similar situation at work.
The solution we use:
We have not seen any issues (besides the normal Crystal ones) with this setup.
It is pretty simple actually. just add following references to your MVC project:
use Action method like below:
C# :
VB.NET :
Just add this reference : using CrystalDecisions.CrystalReports.Engine;
than do this action :