After the crystal report is arranged, the following images are not displayed:
First, the image on the toolbar of the crystal report is not displayed.;
Second, the image objects in the crystal report are not displayed.;
Solution to the first case:
The image on the toolbar is not displayed because the website-related image styles required by the crystal report are not found on the published server.
View the source code of the page on the page where the crystal report image is not displayed. It can be found between Copy codeThe Code is as follows:
</Head>
<Link href = "/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
Rel = "stylesheet" type = "text/css"/>
</Head>
This includes the relevant styles and the images required on the crystal report.
In this directory of the machine:
Copy codeThe Code is as follows:
C: \ Inetpub \ wwwroot \ aspnet_client \ system_web \ 2_0_50727
In the CrystalReportWebFormViewer3 folder.
You can copy the directory on your development machine to the server to solve the problem.
Solution to the second situation:
Image objects designed in the crystal report are not displayed on the published server.
Solution:
Configuration file on site
Web. config. Add the following content under the relevant section.
Copy codeThe Code is as follows:
<HttpHandlers>
<Add verb = "GET" path = "CrystalImageHandler. aspx "type =" CrystalDecisions. web. crystalImageHandler, CrystalDecisions. web, Version = 11.5.3700.0, Culture = neutral, PublicKeyToken = 692fbea5521e1304 "/>
</HttpHandlers>
The problem that the image objects in the crystal report are not displayed is solved.