. Net package a program with a crystal report

Source: Internet
Author: User

Reprinted from: http://hi.baidu.com/%C4%B3%CD%C1/blog/item/1424ab03d730b28bd53f7c36.html

Bytes -------------------------------------------------------------------------------------------------------------------------
With Crystal ReportsProgramDuring packaging, you must pack the SN together. Otherwise, an error will be reported when the program is installed on a machine without a crystal report.

Procedure:

1) create a "installation and deployment project" --> "Installation Wizard"
(2) Select the project type (here, select "Create an installer for Windows Applications") --> next
(3) Select the file to be included: deploy and use Crystal Reports for Visual Studio. NET 2003 program, you need to add the merging module (right-click the top node of the tree in Solution Explorer --> Add ).
Crystal_database_access2003.msm
Crystal_database_access2003_enu.msm
Crystal_managed2003.msm
Crystal_regwiz2003.msm
Vc_user_crt71_rtl_x86 _ ---. MSM
Vc_user_stl71_rtl_x86 _ ---. MSM
You can find the replaced merging module in the 'C: \ Program Files \ common files \ merge modules 'folder.
(4) open solution --> right-click the properties of crystal_regwiz2003.msm, and fill in "license key" in "mergemouduleproperties: * ************************** (this is the registration code used to generate the crystal report.! Note that it is a long one,It is not the registration number displayed in a textbox.)
(5) generate a solution

If there is no step 4, A keycodev2.dll or invalid password error will be prompted when you execute the print report.

In the above steps, if your "clean" machine is installed with a crystal report, you can do it here.

If you do not want to attach a crystal report to a "clean" machine, follow these steps:

  1. In " Add project output Group " , Select " Primary output " And then click " OK " .

     

All dependencies will be automatically added, as shown in figure Dotnetfxredist_x86_enu.msmAndDotnetcrystalreports. MSM.

 

 

 

 

 

2. dotnetcrystalreports. MSM excluded from project, in Solution Explorer, right-click the module, select " exclude " .

3. in Solution Explorer, right-click the installation project and point to " Add " , click " merging module " .

 

 

 

 

 

4. In"Add Module"In the dialog box, select the following merge modules to add to the installation project, and then click"Open":

 

 

 

 

 

  • Reportengine. MSM,

     

  • Crnetruntime. MSM

     

  • License. MSM

     

  • mapping. MSM (optional, when geographic maps )

5.In Solution Explorer, right-click License. MSMFile, and then select"Attribute".

6. In " Attribute " Window, expand Mergemoduleproperties And then " License key " Enter a valid license key in the properties box.

Note::Whenever deployedCrystal ReportsThe license key must be provided for the application.

 

 

 

 

 

7. from " generation " in the menu, select " solution generation " to generate an application

If the preceding steps are not completed, the error "load crpe32.dll failed" is displayed.

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.