Quantcast
Viewing latest article 1
Browse Latest Browse All 5

How to use Crystal Report 2010 in VS2010

Using Crystal Report 2010

  • Requirements: Visual Studio 2010, Crystal Report 2010
  • Level: Moderate
  • Language: Visual Basic.Net

About Crystal Reports

Crystal Report has been a partner of developer in creating a professional reporting since the early versions of Visual Studio.Microsoft proves that they have the speed on creating and updating their products, although Business Objects tried to follows the abrupt products updates of Microsoft still they left behind the race. In fairness with the Business Objects, they have also a quality products that most programmer depends on.

Crystal Reports 2010 in Visual Studio 2010?

The questions “Is CR2010 beta can be use in Visual Studio 2010?” the answer is YES, of course, even though CR is still on its beta version (Free to download and will remain free as the Business Objects representative Cheers, Blair said.) we will be able to use it in VS2010 but need for some settings to be set in order that this products will be able to use. Based on my experience I am going to show you how I did it just consider for some procedures to follow.
  1. Download the CR2010 beta 2 from Business Object Website.
  2. Crystal Reports for Visual Studio 2010.
  3. Crystal Reports Runtime engine for .net framework 4.0 (32 bit).
  4. Crystal Reports Runtime engine for .net framework 4.0 (64 bit).
  5. You are going to need these two installer the CR2010 for VS2010 and the Crystal Report Runtime Engine.
  6. Any previous installed crystal report should uninstall first before installing the new release.

Or you can now download the Production Release from the ff:

  1. SAP Crystal Report Version for Visual Studio 2010.
  2. Click Once SAP Crystal Reports, version for Visual Studio 2010 -
  3. Merge Module SAP Crystal Reports, version for Visual Studio 2010 -
  4. SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit).
  5. SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit)
Now install Crystal Reports For Visual Studio 2010 on your developer machine and as well as Runtime Engine. Create a setup program on your project, on Project Solution Explorer right click the setup, in the picture below it shows AISCollection and select properties:

on Properties Dialog box click Prerequisites, to show the prerequisites dialog box as shown below:

If you cannot see Crystal Report 2010 Runtime, surely it will not appear on your Prerequisites dialog because it was manually created using Bootstrapper Manifest Generator for Visual Studio 2008 you can download the Bootstrapper Manifest Generator HERE to generate a prerequisite installer on your project. The same way with framework2 and Microsoft data Access Component for VS2010 all was created using Bootstrapper Manifest Generator. Crystal Report 2010 beta uses the .net framework 2.0 that’s why you need to include it on your setup. program. As an alternative way if you don’t want to create a prerequisite installer for that, you need to manually install the runtime and the .net framework 2.0 including the Microsoft data Access Component 2.8 on your client machine before all things will work perfectly. The Tutorials on how to use the Bootstrapper Manifest Generator will be available soon, please come back and check it here regularly.

Issue Arising After Installing the new Crystal Report Production Release.

Upon Compiling your projects if you do experience a not found error “crdb_adoplus.dll“, all you have to do are:
  1. Go to the folder “C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86” and copy the crdb_adoplus.dll into dotnet1 folder, if the dotnet1 folder does not exist on “”C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86” create it and copy the crdb_adoplus.dll on this folder (dotnet1).
  2. The above File path will look like “C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll“.
  3. Now open your Application’s Configuration File “[ProjectName].exe.config” if your Project name ismyCollection then the Configuration File will be “myCollection.exe.config“, Locate the ff: line
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0">
</startup>

and replace it with the ff:

<startup useLegacyV2RuntimeActivationPolicy="true">
     <supportedRuntime version="v4.0"/>
</startup>
This will tell Visual Studio to Support the Runtime Version 4.0, failed to do it will result in the ff: error
Mixed mode assembly is built against version ‘v2.0.50727′ of the runtime
and cannot be loaded in the 4.0 runtime without additional configuration information.

Keywords: , , , , , , ,

Other reading this article are also reading these:


Viewing latest article 1
Browse Latest Browse All 5

Trending Articles