Common Problems and Solutions for deploying Crystal Reports haibodotnet (original)

Source: Internet
Author: User
Tags microsoft website visual studio installer
Directory:
1. Report loading error
2. An error occurred while deploying to Windows 98/me: "load report failed"
3. Run the prompt "this field name is unknown" on the Win98 client"
4. "query engine error" when distributed to the client"
5. Load crpe32.dll failed
6. An error occurred while loading the report in ASP. NET: "load report failed"
7. When the. NET 9.1 program is deployed to Windows 98, an error occurs: "load report failed"
------------------------------------------------
1. Report loading error
The problem lies in report Publishing.
A project that publishes a crystal report must contain three components: Report (*. RPT), Module (*. (*. these module files are in the C:/program files/common files/merge modules/directory.
(1) Report (*. rpt)
The crystal report file created by the user during programming.
(2) module (*. MSM)
Managed. this module contains CR for.. Net management module, such as crystaldecisions and crystalreports. engine. DLL, crystaldecisions. web. DLL, and crystaldecisions. windows. forms. DLL ......
Managed_chs.msm is supported by the Chinese version of this module.
Database_access.msm this module contains the database driver, the connection with different databases, and the documents and chart components that export reports in the RTF and HTML formats.
Database_access_chs.msm is supported in the Chinese language of this module.
Regwiz. MSM registration information module is very important. You must enter the registration serial number of the crystal report in this module.
(3) running database (*. MSM)
If the report file uses the dataset DataSet object of ADO. net, the vc_crt.msm and vc_stl.msm modules must also be included in the installation project. The "module retargetable folder" item of the File Installation attribute of the two modules must be modified to the system directory.
In the Vs. net installation project, only dotnetfxredist_x86_chs.msm and managed. MSM modules are detected by the system. We need to manually add other modules.
(1) In Solution Explorer, right-click the installation project and choose "add"-> "Merge Module (m )"
(2) In the "add module" dialog form, select managed_chs.msm, database_access, database_access_chs, regwiz, vc_crt.msm, and vc_stl.msm.
(3) re-build the installation project. No problem, but the generated installation program is 7 or 8 Mb in size.
-------------------------
2. An error occurred while deploying to Windows 98/me: "load report failed"
It is because the query engine DLL (crqe. dll) is not correctly registered on the customer's computer.
To solve this problem, manually register crqe. dll on the client's computer and run the following command:
Regsvr32 "C:/program files/common files/crystal decisions/1.0/bin/crqe. dll"
If crqe. dll is not successfully registered and the problem persists, check the ATL. dll version on the customer's computer. The correct ATL. DLL for Windows 98/Me version is 3.0.8449.
By using any of the following three methods, you can find and register the correct version of ATL. dll.
(1) install ie6.0 on the client computer.
(2) manually copy and register ATL. dll on the customer's computer, and then run the installation package for Crystal Reports distribution.
(2) Add the ATL. MSM merge module to the installation project. ATL. MSM is part of Visual Studio installer 1.1. You can go to the Microsoft website http://msdn.microsoft.com/vstudio/downloads/tools/vsi11/download.aspxdownload.
-------------------------
3. Run the prompt "this field name is unknown" on the Win98 client"
The report works normally on the Win2000 client. when running the Report on the Win98 client, the message "this field name is unknown "?
The reason is that the field name in the SQL Server database used by the report is Chinese, and the field name is changed to English field name.
-------------------------
4. "query engine error" when distributed to the client"
(1) The "installation project" should contain the following merging modules:
Vc_crt.msm
Vc_stl.msm
(2) Make sure that msvcr70.dll and msvcp70.dll are in the "system directory" of the customer's computer.
-------------------------
5. Load crpe32.dll failed
The following describes how to deploy crystal report 9 in cr9net_deployment.pdf:
Open the windows application.
In Solution Explorer, right-click windows application solution, point to "add", and then click "Create Project ".
In the Add new project dialog box, select "Install and deploy Project" in the "project type" pane, and select "Install Project" in the "template" pane ". Click OK.
In solution resource management, right-click the installation project, point to "add", and then click "project output ".
In "add project output group", select "primary output" and click "OK ".
All dependencies are automatically added, such as dotnetfxredist_x86_enu.msm and dotnetcrystalreports. MSM.
To exclude dotnetcrystalreports. MSM from the project, right-click the module in Solution Explorer and choose exclude ".
In Solution Explorer, right-click the installation project, point to "add", and then click "Merge Module ".
In the "add module" dialog box, select the following modules to be added to the installation project, and click "open ":
Reportengine. MSM, crnetruntime. MSM, license. MSM
Mapping. MSM (optional. When geographic maps are used in the report)
Vc_crt.msm and vc_stl.msm (if the windows application you deploy uses the ADO. Net dataset, the vc_crt and vc_stl merging modules must also be included)
In Solution Explorer, right-click the license. MSM file and select "properties ".
In the Properties window, expand mergemoduleproperties and enter a valid license key in the license key attribute box.
Note that the license key must be provided whenever the Crystal Reports application is deployed.
From the "generate" menu, select "generate solution" to generate the application.
-------------------------
6. An error occurred while loading the report in ASP. NET: "load report failed"
Make sure that the local user of ASPnet has "Full Control" permission on the report folder.
-------------------------
7. When the. NET 9.1 program is deployed to Windows 98, an error occurs: "load report failed"
It is because the query engine DLL (crqe. dll) is not correctly registered on the customer's computer.
To solve this problem, copy dbghelp. dll from the development computer to the "C: Windows/system32" folder on the client computer.

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.