Improve image quality When viewing Crystal Report reports on the WEB using Visual Studio. NET

Source: Internet
Author: User
Tags file size iis visual studio
Visual|web| Crystal Report articles in the Knowledge for:
Visual Studio. NET built-in Crystal Reports
Apply to:
Only for reported versions
Image quality
Web Viewer

Outline

The WEB program uses the Crystal Report built into Visual Studio. NET as a report development tool.

When you view a report on the WEB, the resolution of the image and the chart is reduced to DPI (for performance and download speed) by default.

How to improve the image quality of the graphic in the report?

Solution

By changing the magnification of the image in the system registry, you can improve the image quality of the graphic in the report.

==========
Warning:

The following decisions include editing the registry. Using Registry Editor incorrectly can cause serious problems and you may need to reload the Windows operating system. The use of the registry will be at your own risk.

It is strongly recommended that you back up the registry files (System.dat and User.dat on the Win9x computer) before you edit the registry.

To learn how to edit the registry

Read the online Help topic for Registry Editor (Regedit.exe), "Change keys and values."

==========

By default, the magnification setting is stored in the registry root key HKEY_CURRENT_USER and is valid only for the current logged-on user. However, when a user is authenticated by IIS through the Web, the user does not have access to the HKEY_CURRENT_USER root key.
Therefore, the magnification setting must be copied to the HKEY_LOCAL_MACHINE root key to function.

To copy the magnification setting to the HKEY_LOCAL_MACHINE root key:

1. Click Start > Run, enter "Regedit" and click OK.

2. Enter Registry Editor and navigate to the following subkey:
Hkey_current_user\software\seagate Software\crystal Reports\export

3. Right-click the "Export" subkey and choose "New" and select "Double byte value".

4. Name the item bitmapmagnifnumerator, and then double-click the item and assign the item a decimal value between 1 and 4 (4 represents the highest quality bitmap) and click OK.

5. Repeat steps 3 and 4 to create the item bitmapmagnifdenominator and assign a value of "1".

6. Select the registry subkey export, and then click the Registry menu and select Export Registry File ...

Enter the filename "export" to ensure that the selected branch radio button is selected in the export range and that the branch points to the export subkey.

7. Click Save to save the registry subkey to the desktop. Close Registry Editor.

8. Edit the registry subkey on your desktop, right-click the registry file, and select Edit. The file will open in Notepad, similar to the following:

Windows Registry Editor Version 5.00

[Hkey_current_user\software\seagate software\crystal Reports\export]
"Maildestdll" = ""
"Maildesttype" =dword:00000000
"Bitmapmagnifnumerator" =dword:00000001
"Bitmapmagnifdenominator" =dword:00000001

9. Edit the file to change the default root key from HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE.

To improve image quality, modify the double byte value "Bitmapmagnifnumerator" and "Bitmapmagnifdenominator". For example, you can set the molecule (Bitmapmagnifnumerator) to 3, the denominator (Bitmapmagnifdenominator) is still 1, which will improve the quality of the original 3 times times or so. The final registry subkey resembles the following:

Windows Registry Editor Version 5.00

[Hkey_current_user\software\seagate software\crystal Reports\export]
"Maildestdll" = ""
"Maildesttype" =dword:00000000
"Bitmapmagnifnumerator" =dword:00000003
"Bitmapmagnifdenominator" =dword:00000001

10. After the modification, save and close the file.

11. Double-click the file Export.reg to import the new subkeys and values into the registry. IIS must be restarted for the registry changes to take effect.

By increasing the magnification of the image in the Crystal Report, you also increase the resolution and file size of all the bitmaps in the report. This will slightly reduce performance and download speed.

=============
Attention:

To increase the image quality of a Windows program:

1. Click Start > Run, and enter "Regedit", and then click OK.

2. Enter Registry Editor and navigate to the following subkey:
Hkey_current_user\software\seagate Software\crystal Reports\export

3. In the right pane of the registry, double-click the "Bitmapmagnifnumerator" Item and enter "3" in the Value data row.

4. Click OK to close the Registry Editor.


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.