Crystal Report for Visual Studio 2010

Hi
When I use of crystal report (sap 13) and .netframework 4 in my application(c#-VS2010) I will be faces
with this error :

Could not load file or assembly ‘file:///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’ or
one of its dependencies. The system cannot find the file specified.

1. download and install sap crystal report for visual studio 2010

http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0.exe

2. Change Taget Frame work .Net Framework 4 client Profile to .Net Framework 4

To change the targeted .NET Framework version in an existing project

Open the project you want to change.

In the Solution Explorer toolbar, choose the Properties button.

You can also select the project node in Solution Explorer, open the context menu
(by right-clicking the node), and select Properties.

You should see the settings on the Application tab. If you do not, select it.

In the Target Framework dropdown list, choose the .NET Framework version that you want.
Then click the OK button.

3. add this code to app.config

<startup useLegacyV2RuntimeActivationPolicy=”true”>

<supportedRuntime version=”v4.0″/>

</startup>

that’s al
now check your crytal report will work. any query drop mail to arun.v@dsrc.co.in or arun.dct@gmail.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s