Tuesday, March 5, 2013

Crystal Report Viewer SharePoint 2010 Deployment , CrystalReportViewer in SharePoint 2010

How to Deploy Crystal Report in SharePoint 2010
CrystalReportViewer in SharePoint 2010

1- Install SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit) :


2- Inside "<SafeControls>"  Tag :

      <SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
      <SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />

3- Inside "assemblies" Tag Add :

 <!-- ========== Crystal ==============================-->
        <add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.CrystalReports.Design, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
        <!-- ========== Crystal ==============================-->

4- Copy "aspnet_client" folder from "C:\>inetpub\wwwroot" and overwrite it on "C:\>inetpub\wwwroot\wss\VirtualDirectories\[Your Port]"



Unknown said...

Tried implementing your solution and received an error after trying to open the Crystal Reports file from inside a SharePoint library. It looks as if the error exists in the web.config file. I don't have access to see any specific error codes or such to identify what threw the error. Any ideas?

Unknown said...
This comment has been removed by the author.
Unknown said...

It turns out the error is thrown by the additional Crystal assemblies. It cannot find the assembly

I already ran the previous install of the Crystal Viewer called "CRforVS_redist_install_64bit_13_0_1.zip" on the server. Do I need to compile something within Visual Studio or is that just the name associated with this file?

How I am using Crystal Reports is I have created a document library and added 2 .rpt files. When I click on a file I want to open the file in the browser utilizing the Crystal Reports Viewer...