Showing posts with label Crystal Reports. Show all posts
Showing posts with label Crystal Reports. Show all posts

Tuesday, 7 January 2014

How to deploy Web Application that uses Crystal Report?

We faced lot of problems when we created Crystal Reports and deployed the pages on the server. The page would display but the Report wouldn't.

Please follow the following steps to display the Crystal Reports on pages deployed on the server.

  1. Go to “C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319″ on the web server.
  2. Copy “crystalreportviewers13″ folder & paste it to the application


Now add the following lines in the web.config file

  <configSections>
    <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="/crystalreportviewers13" />
      </crystalReportViewer>
    </crystalReports>

  </businessObjects>




This should work.





Thursday, 22 November 2012

CrystalReportViewer not visible in Visual Studio 2010

If the CrystalReportViewer in not visible in the toolbox, follow the instructions given below:
  1. Right click on the ProjectName in the Solution Explorer and select Properties
  2. Select the Compile Tab.

  3. Click the Advanced Compile Options... button
  4. Select .NET Framework 4 in the Target framework (all configurations)