There are two types of cases where the pictures inside the crystal report are not displayed:
First, the picture on the crystal report toolbar does not display;
Second, the image objects in the crystal report are not displayed;
Solution to the first case:
The site-related image styles required for the Crystal Report are not found for the image not displayed on the published server.
On pages where the crystal report picture does not display, look at the source code of the page. Can be found between <head></head>
</head>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/"
rel="stylesheet" type="text/css" />
</head>
This includes the relevant styles and pictures required on the crystal report.
Specifically in this directory of the machine:
C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727
in the CrystalReportWebFormViewer3 folder.
You can copy this directory from your development machine to the server to solve the problem.
Solution to the second case:
Image objects designed in the crystal report are not displayed on the published server.
Solution:
Configuration files on the site
middle. In the relevant sections, add the following content.
<httpHandlers>
<add verb="GET" path="" type=", , Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
This can solve the problem that the image objects in the crystal report are not displayed.
First, the picture on the crystal report toolbar does not display;
Second, the image objects in the crystal report are not displayed;
Solution to the first case:
The site-related image styles required for the Crystal Report are not found for the image not displayed on the published server.
On pages where the crystal report picture does not display, look at the source code of the page. Can be found between <head></head>
Copy the codeThe code is as follows:
</head>
<link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/"
rel="stylesheet" type="text/css" />
</head>
This includes the relevant styles and pictures required on the crystal report.
Specifically in this directory of the machine:
Copy the codeThe code is as follows:
C:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727
in the CrystalReportWebFormViewer3 folder.
You can copy this directory from your development machine to the server to solve the problem.
Solution to the second case:
Image objects designed in the crystal report are not displayed on the published server.
Solution:
Configuration files on the site
middle. In the relevant sections, add the following content.
Copy the codeThe code is as follows:
<httpHandlers>
<add verb="GET" path="" type=", , Version=11.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
This can solve the problem that the image objects in the crystal report are not displayed.