Improve image quality When Visual Studio. NET is used to view the Crystal Report on the Web

Source: Internet
Author: User

Knowledge in this article:
Visual Studio. NET built-in Crystal Reports
Applicable:
Only for the reported version
Image Quality
Web Viewer

Outline

Web programs use Visual Studio. NET built-in Crystal Reports as report development tools.

When you view a Report on the Web, the resolution of the default situation and chart is reduced to 96 DPI (to improve performance and download speed ).

How can we improve the image quality in reports?

Solution

By changing the magnification of images in the system registry, you can improve the image quality in reports.

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

The following decisions include editing the registry. Incorrect use of the Registry Editor may cause serious problems. You may need to reinstall the Windows operating system. Using the registry will be at your own risk.

We strongly recommend that you back up the Registry File (system. dat and user. dat on Win9x) before editing the registry ).

Learn how to edit the Registry

Read the online help topic "change items and values" in the Registry Editor (regedit.exe ".

============

By default, the magnification setting is stored in the registry root key HKEY_CURRENT_USER, and is only valid for the current login user. However, if you are authenticated by IIS on the web, you do 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 take effect.

Copy the magnification settings to the HKEY_LOCAL_MACHINE root key:

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

2. Go to the Registry Editor and find the following sub-key:
HKEY_CURRENT_USER/software/Seagate software/Crystal Reports/Export

3. Right-click the "Export" subkey, select "new", and select "double byte value ".

4. Name the item bitmapmagnifnumerator, double-click the item, assign a decimal value between 1 and 4 to the item (4 indicates the highest quality Bitmap), and click OK ".

5. Repeat Steps 3 and 4 to create the bitmapmagnifdenominator and assign it to "1 ".

6. Select the registry subkey export, click the "Registry" menu, and select "Export registry file ..."

Enter the file name "Export", make sure that the "selected branch" radio button is selected in the "export range", and 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 the desktop, right-click the Registry file, and select "edit ". The file will be opened in Notepad. The content is 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 and change the default root key from HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE.

To improve the image quality, modify the dual-byte values "bitmapmagnifnumerator" and "bitmapmagnifdenominator ". For example, you can set bitmapmagnifnumerator to 3 and bitmapmagnifdenominator to 1, which will improve the quality by about three times. The final registry subkeys are 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: 00000003
"Bitmapmagnifdenominator" = DWORD: 00000001

10. Save and close the file after modification.

11. Double-click the file export. reg to import the new sub-key and value to the Registry. IIS must be restarted to make registry changes take effect.

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

==================
Note:

To increase the image quality of Windows programs:

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

2. Go to the Registry Editor and find the following sub-key:
HKEY_CURRENT_USER/software/Seagate software/Crystal Reports/Export

3. Double-click the "bitmapmagnifnumerator" item in the right pane of the Registry, and enter "3" in the "value data" line ".

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.