Asp tutorial. net Crystal Report icons do not show Solution
Sometimes when a pie chart or column chart is added to a crystal report, the page displays a cross, that is, the image is not output. The solution is as follows:
Add the following nodes to web. config:
<System. web>
The web. config file in the web application of the asp.net tutorial stores global settings, such as database tutorial connection information, assembly reference, and error handling. This file is written in xml format, and its root element must always be <configuration>. This is an advanced configuration and is not required.
The following elements are unique to crystal reports and can be added to the web. config file.
Crystalimagehandler
The crystalimagehandler element displays all dynamic images in the crystalreportviewer control. This setting configures the asp.net auxiliary process to redirect requests made to crystalimagehandler. aspx to internal image processing program classes only. If no crystalimagehandler is set in the web. config file, the images on the website will not be displayed. When the crystalreportviewer control is added to a website, this element is automatically added to the web. config file.
Copy
<System. web>
<Httphandlers>
<Add verb = "get" path = "crystalimagehandler. aspx "type =" crystaldecisions. web. crystalimagehandler, crystaldecisions. web, version = 10.5.3700.0, culture = neutral, publickeytoken = 692fbea5521e1304 "/>
</Httphandlers>
</System. web>
Crystalimagecleaner
The crystalimagecleaner process automatically deletes the dynamically generated image presented by the crystalreportviewer control. You can use this setting to set the shortest interval between the scanned image directory and the file existence before deleting the file. When the crystalreportviewer control is added to a website, this element is automatically added to the web. config file. This element corresponds to the crystalimagecleaner class.
Crystalimagecleaner-sleep initializes the time (in milliseconds) that the image cleaner sleeps before scanning and clearing image files in the dynamic image directory ).
Minimum time (in milliseconds) before the crystalimagecleaner-age initialization file is deleted ).
Crystalimagecleaner-autostart controls the crystalimagecleaner process. The image cleaner clears the temporary image created when you view a report whose value is set to true.
Note:
Only one image cleaner can be started in a single asp.net auxiliary process.
Copy
<Deleetask>
<Add key = "crystalimagecleaner-autostart" value = "true"/>
<Add key = "crystalimagecleaner-sleep" value = "60000"/>
<Add key = "crystalimagecleaner-age" value = "120000"/>
</Appsettings>
For more details, see
Http://msdn.microsoft.com/zh-cn/library/ms227537.aspx