Deploy a project that contains a crystal report

Source: Internet
Author: User
Tags visual studio installer

During installation and deployment, enter the msm of the Crystal report and register it on the server. Deploy the program that uses Crystal Reports for Visual Studio. NET 2003;

 

First, find the following seven files:
Crystal_Database_Access2003.msm
Crystal_Database_Access2003_chs.msm
Crystal_Managed2003.msm
Crystal_Managed2003_chs.msm
Crystal_regwiz2003.msm
VC_User_CRT71_RTL_X86 _ ---. msm
VC_User_STL71_RTL_X86 _ ---. msm
 
(You can find them in The 'C: \ Program Files \ Common Files \ Merge Les 'folder)

Then, in Solution Explorer, right-click the installation project, point to "add", and click "Merge Module ".
In the "add module" dialog box, select the seven modules to be added to the installation project, and click "open ":

Also, choose solution> right-click the attributes of Crystal_regwiz2003.msm and enter the "License Key" in "MergeMouduleProperties: aap5gksjwgde100ds (this is the password of the registration number used to generate the Crystal Report !)
 

'*************************************** **********

Common Problems and Solutions for deploying Crystal Reports (Collection: Haibo. NET, 2003-10-18)

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 object of ADO. NET, the VC_CRT.msm and VC_STL.msm modules must also be included in the installation project. In addition, the \ Module Retargetable Folder \ item of the File Installation attribute of the two modules must be changed 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 merging module to the installation project. ATL. msm is part of Visual Studio installer 1.1 and can go to Microsoft's website.Http://msdn.microsoft.com/vstudio/downloads/tools/vsi11/download.aspxDownload. The method is the same as above.

-------------------------

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.