Silverlight / WPF - assembly in 4.0 - Asked By sushant kumar kesari on 21-Sep-11 02:01 AM

helo friend 

i m working in wpf VS 2010.

i want to CR in My Project .
 which assembly i have to add in my project.
to run the crystal report.

plz reply ASAP.
Suchit shah replied to sushant kumar kesari on 21-Sep-11 02:04 AM
Below Assembley required :

crystal report for .net framework 4.0
crystaldecision.crystalreports.engine
crystaldecision.reportsource
crystaldecision.shared
crystaldecision.vsdesigner
crystaldecision.windows.forms
Web Star replied to sushant kumar kesari on 21-Sep-11 02:10 AM

WPF doesn't have a Crystal report Viewer control at this point. You need to host the Windows Forms Crystal report viewer control in WPF.

Please follow this link for hosting Windows Forms Control in WPF: http://msdn.microsoft.com/en-us/library/ms751797.aspx#Windows_Presentation_Foundation_Application_Hosting

you can download the latest version of CR from herehttp://www.businessobjects.com/jump/xi/crvs2010/default.asp

it have WPF support. for crystal report viewer for WPF referance this assembly after installing CR 2010

Hope this helps.

Anoop S replied to sushant kumar kesari on 21-Sep-11 03:00 AM
You have to change a setting in your app.config file

<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
Reena Jain replied to sushant kumar kesari on 21-Sep-11 09:37 AM
Hi,

WPF support. for crystal report viewer for WPF referance this assembly after installing CR 2010

Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\SAPBusinessObjects.WPF.Viewer.dll