How to disable display of the asp.net crystal report icon

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.