These days, I was a little angry about the crystal report.
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. MSM
This module contains the management modules of CR for vs. net, such as crystaldecisions, 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 driver of the database, the connection with different databases, and the document and chart components that export reports to the RTF and HTML formats.
Database_access_chs.msm
Is supported by the Chinese version of this module.
Regwiz. MSM
The registration information module is very important. You must enter the registration serial number of the crystal report in this module. If this parameter is not specified, the statement cannot be passed during compilation.
Keycode MSM processes the installation of the crystal decisions key number, so that your users are not required to register their crystal version when viewing the report.
(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.
-------------------------
2. Procedure:
(1) create a "installation and deployment project" --> "Installation Wizard"
(2) Select the project type (here, select "create for Windows application ") Program ") --> Next step
(3) Select the file to be included: add your program file and managed under c: \ Program Files \ common files \ merge modules. MSM, managed_chs.msm, database_access.msm, database_access_chs.msm, and regwiz. MSM, vc_crt.msm, and vc_stl.msm. --> Complete
(4) open solution --> right-click regwiz. for the attributes of MSM, enter the "license key" in "mergemouduleproperties": aap5gks1_gde100ds (this is the registration code used to generate the crystal report !)
(5) generate a solution (or press Ctrl + Shift + B)