Advanced installer package the data center charging system that includes the Crystal Report

Source: Internet
Author: User

After the charging system of the personal data center is completed, it needs to be released in different regions. Originally, we wanted to use VB. net tool for packaging, but it is not as good as I would like, how to do it is not good, so I had to find a new tool and find the advanced installer, now let's talk about the several items that need to be added when I package with this software. MSM files and some errors.

My personal data center charging system includes two reports. The first one is the crystal report (grid ++ report) and the reportview that comes with VB. NET. My version is the Chinese version of advanced installer 9.8.

The. MSM file to be added:

When you add the files you want to package, do not forget to select the Merge Module on the left and add the. MSM file you need. Add the following here:

If no Crystal Reports redist exists, download the downloaded Crystal Reports redist and place it in c: \ Program Files \ common files \ merge modules, add crystalreportsredist2005_x86 or crystalreportsredist2005_x64 (depending on the number of places in your host)

The files added are also c: \ Program Files \ common files \ merge modules, which correspond to all the MSM files of your computer model.

Error 1:

After the installation is successful, the system cannot find the file of the crystal report. After checking the pop-up error message, it is found that the path of the crystal report is incorrect. To set the path, we must use the current path of the crystal report. At the same time, place the Crystal Report. GRF file under the UI \ bin \ debug of the current packaging file, and enter the report.

How do I set the current report path?

App. Path is used in VB and application. startuppath is used in VB. NET. Example:

Imports Microsoft. VisualBasic. Compatibility import the class library to obtain the file path
Public Shared GridppReport As New grproLib.GridppReport
Public shared function getsamplerootpath () as string getsamplerootpath = application. startuppath () 'get the report path end Function
Private sub frmdaycheck_load (byval sender as system. object, byval e as system. eventargs) handles mybase. loadgridppreport. loadfromfile (getsamplerootpath () + "\ daily report. GRF ") 'Load the template Report End sub

Error 2:

After packaging and installation, VB. net reports cannot be displayed, and an error occurs: the file or assembly "Microsoft. reportviewer. webforms, version = 9.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a "or one of its dependencies. The system cannot find the specified file.

Solution:

During packaging, add the following three. DLL files to the module:

Microsoft. reportviewer. Common. dll

Microsoft. reportviewer. webforms. dll

Microsoft. reportviewer. winforms. dll

The three files are located:

If your vs is installed on the C drive, go to c: \ Program Files \ Microsoft Visual Studio 9.0 \ reportviewer.



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.