Crystal deployment steps

Source: Internet
Author: User
Tags vc runtime

When deploying and installing applications with Crystal Reports, some special processing methods are required: msdn data.
MS-help: // Ms. msdnqtr.2003feb. 2052/crystlmn/html/crconreportdeploymentscenarios.htm
Practices of some predecessors on the Forum:
1. Registration Code
Registration number: 6707437608
Password: aap5gks0000gde100ds

2. distributed to Win98, Win2k, and WINXP machines:

Principle:
Use Microsoft Installer (MSI) to distribute the modules included in your installation package (MSM.
The MSI Merge Module (MSM) can be found in the "C: \ Program Files \ common files \ merge modules" directory.
The merging module (MSM) is divided into three types: managed components, database access, and key numbers.
The managed component MSM processes the distribution of all managed components, including windows form viewer, web form viewer, and all crystal decisions namespaces. All other files required for running the report are distributed by the database access MSM. These include database, export, and chart drivers. 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.

 

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: add the managed under your program file + 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

The specific functions are as follows:
Managed. MSM, managed_chs.msm (managed components msm process distribution of all managed components, including windows form viewer, web form viewer, and all crystal decisions namespaces)
Database_access.msm, database_access_chs.msm, (for all other files required to run the report, the database accesses the MSM to process the distribution. These include database, export, and chart drivers .)
Regwiz. MSM, (keycode MSM processes crystal decisions key number installation)
Vc_crt.msm and vc_stl.msm (this is definitely not mentioned on msdn. It is the VC Runtime Library. It is estimated that crystal report or some programs involved are written in VC, so we need it !)

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)

So far, the entire distribution program of crystalreport has been completed. All you need to do is first install dotnetframework and mdac27 on Win98 (available on the update disk), and then double-click the installation program you just created ......

If there is no accident, your program can run on the Windows platform. Next, let's summarize some of the problems you encounter when making a crystal report:
1. What is the pull and push model?
A: To put it simply, pull records directly from the database (static), while push records using ADO. net, ADO, Dao, CDO, rdo ...... Dynamically extract records from the database.
2. How many digits is the license key?
Answer: Len ("aap5gks?gde100ds ")
3. "query engine error" when distributed to the client"
A: That's because the VC runtime libraries are not installed: vc_crt.msm and vc_stl.msm.
4. How to dynamically generate reports
A: provide a piece of code to help you.
Private void btnpreview_click (Object sender, system. eventargs E)
{
Crystalreport crpt = new crystalreport ();
Crpt. setdatasource (Dataset );
//
// Start generating a print preview form
//
Form rptform = new form ();
Rptform. Text = "preview ";
Rptform. formborderstyle = formborderstyle. fixedtoolwindow;
Rptform. windowstate = system. Windows. Forms. formwindowstate. maximized;
Crystaldecisions. Windows. Forms. crystalreportviewer rptview = new crystaldecisions. Windows. Forms. crystalreportviewer ();
Rptview. reportsource = crpt;
Rptform. Controls. Add (rptview );
Rptview. Dock = system. Windows. Forms. dockstyle. Fill;
Rptform. Show ();
}

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.