Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SAP Crystal Reports Viewer does not display in browser

I own a ASP.NET web project with framework 4.5. Is installed and implemented an SAP report for VS2012 Crystal Reports Developer.

Making in Local report, it works correctly in browsers (Chrome, Firefox, IE) and the data in the correct exit. Now, at the time of publishing (on another server) the first thing we did was install the same version of SAP, so that there are the necessary libraries etc..

The problem I have is that the block of Report Viewer, I mean, what is the repot container, not shown in the browser, open the window where is this embedded but not shown anything in the Report Viewer, what the report will look even less.

Thinking it might be a data error or something, I tried to change the report and put a blank, where all that is shown is a text, and no connections or anything like that and removing the code that is not needed in the code behind, I just stopped loading the report.

In new local works, but on the web published, the Report Viewer still be

Anybody can help me a bit? I looking for some information about it but what I find in forums related, is that the report is not seen, but nothing of Report Viewer.

Thank you very so much in advance.

PS: I have checked the server log for error to any issue or Asp.Net Crystal Reports and not leave anything.

like image 784
amelian Avatar asked Nov 28 '22 09:11

amelian


2 Answers

I have smiler problem and found a solution.

I think there is some problem in finding Resource from default Resource-Uri for formatting of crystal report.

For proper formatting Copy C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 this folder into your project.

And past these lines into your 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>

Check this

This will help you.

like image 173
Ashish Rathore Avatar answered Dec 06 '22 00:12

Ashish Rathore


Solved.... 100 % 'll work. Follow the below two steps:

1.Update Application Folder.

"C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13" into your application root folder asp below snapshot. enter image description here

  1. Update Web.Config file by the following code.

enter image description here

like image 45
Abdul Khaliq Avatar answered Dec 05 '22 22:12

Abdul Khaliq