Tuesday, September 20, 2011

Add CrystalReports to Windows Form project in Visual Studio 2010


Many people ask me about crystal reports in Visual Studio 2010. It isn’t same with the previous versions. In Visual Studio 2010, we must get the Crystal Reports installation package and install it. You can download Crystal Reports for Visual Studio in the link below for free..

Download Crystal Reports for Visual Studio


After download and install this, we still can’t add CrystalReport element to our Windows Form Application projects. It’s because when you create new .net 4 Windows Form Application Projects, it uses the .net 4 Client Profile Framework. To add Crystal Reports component, we must change the framework to the standard .net 4 Framework. It can be accomplished by open (Projects – Your Application Properties – Application) and change the Target Framework to the standard .net 4 framework.

After that, you will see CrystalReportViewer and CrystalReportDocument in the toolbox.. You can easily drag that control to your form like other control..

Hopefully it will help solving your problem.. Regards.. ^_^

No comments:

Post a Comment