(I am using Visual Studio Ultimate 2012 and Crystal Report v13)
1. Make sure Crystal Report is installed. The 2010 and 2012 versions of Visual Studio have no bundled Crystal Reports with them, so installing it is a must if you want to make custom reports. You can verify if its installed by going to Programs and Features (see the image below). If you can’t find it there, download and install Crystal Reports here.
2. Make sure Crystal Reports is referenced. Open the list of references being used by your project (Project > Add Reference > Extensions). Make sure Crystal Reports’ references are checked just like what you see below.
3. Check your Web.Config file. Your Web.Config file should contain the following:
<sectionGroup name="businessObjects"> <sectionGroup name="crystalReports"> <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral,PublicKeyToken=692fbea5521e1304, Custom=null" /> <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" /> </sectionGroup> </sectionGroup> </configSections> <businessObjects> <crystalReports> <rptBuildProvider> <add embedRptInResource="true" /> </rptBuildProvider> <crystalReportViewer> <add key="ResourceUri" value="/crystalreportviewers" /> </crystalReportViewer> </crystalReports> </businessObjects>
4. Lastly, copy Crystral Reports’ files. Go to the installation directory of Crystal Report (C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\Crystal Reports 2011). If you are using a 32-bit OS, go to (C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\Crystal Reports 2011). You will find a ‘crystalreportviewers’ folder. Copy the whole folder into these two locations: (1) C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319 (2) C:\Users\tamay_000\Documents\Visual Studio 2012\Projects\<name of your project>\<name of your project>. The 2nd location is where your project is. Please see the attached photos for your reference.