Crystal reports will not display correctly

I am trying to deploy a web application to Windows 2012 Server, but the Crystal Report viewer will not display correctly on the server; but it works fine in place.

enter image description here

My web.config file has the correct crystal tags:

<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"></section>
        </sectionGroup>
    </sectionGroup>
</configSections>

<businessObjects>
    <crystalReports>
        <rptBuildProvider>
            <add embedRptInResource="true" />
        </rptBuildProvider>
        <crystalReportViewer>
            <add key="ResourceUri" value="/crystalreportviewers13" />
        </crystalReportViewer>
    </crystalReports>
</businessObjects>

      

I use:

  • Crystal Reports Runtime 13.0.14
  • IIS 8.0
  • Windows Server 2012
+3


source to share


3 answers


Ok, so after weeks of head scratching, bounty offers, and Googling, I finally figured out the problem. Crystal Runtime works great, it is a browser compatibility issue. I added the following meta tag to the page and now it just works fine in IE.

<meta http-equiv="X-UA-Compatible" content="IE=9">

      



Unfortunately it still doesn't display as expected in Chrome, but that's the whole problem.

0


source


The problem is that Crystal Reports by default uses the local printer settings to generate the report and the server might have different default page settings (I have no idea why this is the default).

To remedy this, open Crystal Reports, in the upper left corner, select File, then Page Setup. You will see the "Printer Options" section, check the "No Printer" box.

Then you will see the page printed on the server. Fix it and it will print the same on any server.

Hope this helps.

PS: You can open Crystal Reports directly from your IDE, such as Visual Studio, by opening a report file (.rpt) and selecting this menu (see picture).

Crystal Reports

PPS: Perhaps I misunderstood the question correctly. I searched the web and found a good and accepted answer that resolved a similar problem that many people were experiencing. Topic title was Crystal Reports not visible when the web page is being served offline. Everything works well locally, but will not render if not locally: http://www.codeproject.com/Answers/361109/Crystal-Reports-not-rendering-when-webpage-is-serv#answer2



Solution mentioned in the link:

The Crystal Report Viewer relies on the execution engine to install the .NET Framework 4 (32-bit and 64-bit installations). These assembly files are not included in your .NET project.

  • Go to a folder C\inetpub\wwwroot

    on any computer that has Crystal Reporting Engine / Status Preferences installed. For my purpose, I just went to the one on the 2008 server I am installing on.
  • Copy the folder aspnet_client

    to the directory wwwroot

    .
  • Paste this folder into your website directory folder. I assume this will work with a web app that was created from a virtual one also just paste it into the virtual directory.

(See full source at CodeProject.com by following the link)

Maybe this link can help you, the problem seems to be related to the same technologies you mentioned. It's your problem? If so, did the answer to the answer provided in the link work for you?

If none of these anders helped you, it is possible that this issue is due to a CSS conflict between yours and the Crystal Reports CSS. If so (you can try using only CR-CSS and see if the problem persists), you can fix it simply by finding the inconsistent CSS and removing it from your CSS.

If not, could you be more specific about your problem, any new information will help me find the right answer for you.

Thank you, had a good day.

+6


source


One possible cause of the problem might be the Crystal Reports runtime, but your application is not running on the default website.

Working around the problems is to copy the aspnet_client folder from the c: \ inetpub \ wwwroot folder to the root folder of the new site.

The whole steps are discussed below:

Crystal Report issue with IIS - (bobj is undefined, Crystal report not showing)

Additional Information:

Crystal report does not work offline

+2


source







All Articles