Symptom
- Image in the chart is blurred in JRC DHTML Viewer
- Quality of rendered image is very low
- Image aliasing occurs in DHTML Viewer
- (-) minus sign is missing in front of some negative numbers on Y-axis when the zoom level of the viewer is set to certain value (for instance: 100%, 150%); However, minus sign shows as expected when the zoom level of the viewer is set to 200%.
Reproducing the Issue
- Create a crystal report containing the chart object
- JRC SDK application is used to view this report
- The image in the chart is blurred or distorted in the DHTML Viewer
Cause
By default, JRC engine sends the high DPI images to the browser as it is then askes the browser to scale down to 100% zoom. Image aliasing occurs when the browser (especially IE) scales down the image.
Resolution
In web.xml file, there is a configuration option to enable image anti-aliasing. Once enabled images that are used for charts should be properly scaled by the DHTML Viewer (scaling is done at the server side then sends the scaled down image to the browser); Otherwise, the viewer will rely on the browser for image scaling.
To enable this please add the following to the web.xml configuration file
<context-param>
<param-name>crystal_image_anti_alias</param-name>
<param-value>on</param-value>
</context-param>
Keywords
image, chart, distort, blurred, low-quality, missing, minus, Y-axis , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem