VS.NET2010 Crystal Report installation deployment [VS2010]

Source: Internet
Author: User
Tags visual studio 2010

Crystal Report version VS2010 IDE installs Standard Edition SAP Crystal Reports, version for Visual Studio 2010-standard:

: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe

After downloading the installation, open VS2010 can see the crystalreportviewer in the left sidebar, and can create a new crystal report;

Usage is similar to previous versions, but pay attention to the following points;

A. The operating environment cannot be a. NET Framework 4.0 Clinet profile, and to the. NET Framework 4, the right-click property of the selected project can be changed;

B. Add an app. config to the project (this is for the WinForm project), if the Web project is not added, there is a config. <startup in this configuration file Uselegacyv2runtimeactivationpolicy= "true" >

<supportedruntime version= "v4.0" sku= ". netframework,version=v4.0 "/></startup>

This avoids the error of the. NET version problem when you run the ADO and Crystal Reports

(1) below to do a simple crystal report, in the project to build a form FORM1, a Crystal report CrystalReport1, a data set DATASET1; (Crystal Report settings are the same as in previous versions)

Place a crystalreportviewer on the form and write it under the FORM1 load event; I'm putting the Crystal report in the Debug folder. Dynamically Loaded You can also specify the name of the report on the Crystalreportviewer directly in the project;

private void Form1_Load (object sender, EventArgs e)

{

SqlConnection con = new SqlConnection ("Data source=10.100.100.5;initial Catalog=cldz; User id=proc4; Password=77cc88 ");

Con. Open ();

SqlDataAdapter da = new SqlDataAdapter ("select top [from ZZZPJ", con);

DataSet ds = new DataSet ();

Da. Fill (ds, "ZZZPJ");

String Reportpath = Application.startuppath + @ "\crystalreport1.rpt";

Reportdocument rd = new reportdocument ();

Rd. Load (Reportpath);

Rd. Setdatasource (ds. Tables[0]. DefaultView);

This.crystalReportViewer1.ReportSource = rd;

}

(2) vs2010 Crystal Report published in two ways;

One is the direct download MSI file installed on the client, the client can be used; 32-bit download above; if it is 64-bit download below;

Crystal Report version VS2010 run-time 32-bit and 64-bit standalone installation packages:

32-bit: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip

64-bit: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip

The second is to download the above Crystal Report VS2010 version of the merge module installation package file, the first one is CRRUNTIME_13_0_1.MSM this is the English bag; If you need to support Chinese, add an MSM, (CRRUNTIME_13_0_1_ZH_CN.MSM); Plus a crruntime_13_0_1_maps.msm this can not be used; Merge Module installation package: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_ Mergemodules_13_0_1.zip

Package the release with VS2010 package software, create a new installation project, the production process of the installation project is not described in detail here, as with the VS2005 production process (see Deploying VS.NET2005 Applications with Crystal Report Crystal Reports [Original]:http ://hi.baidu.com/jcserver/blog/item/5629e018eccef3ac4aedbc9a.html);

After the production, right-click on the project to add-merge module-the above mentioned three. The MSM end file is added and finalized.

[

Special Note:

Some of the web-text said that the need to

C:\Program Files\Common Files\merge, microsoft_vc100_*_x86.msm-like MSM files in the Modules folder are also added

If it's 32-bit, add x86 (MICROSOFT_VC100_ATL_X86.MSM, MICROSOFT_VC100_CRT_X86.MSM, MICROSOFT_VC100_DEBUGCRT_X86.MSM, MICROSOFT_VC100_DEBUGMFC_X86.MSM, Microsoft_vc100_debugopenmp_x86.msm, MICROSOFT_VC100_MFCLOC_X86.MSM, Microsoft_ VC100_MFC_X86.MSM, MICROSOFT_VC100_OPENMP_X86.MSM);

If it's 64-bit, add x64 (MICROSOFT_VC100_ATL_X64.MSM, MICROSOFT_VC100_CRT_X64.MSM, MICROSOFT_VC100_DEBUGCRT_X64.MSM, MICROSOFT_VC100_DEBUGMFC_X64.MSM, MICROSOFT_VC100_DEBUGOPENMP_X64.MSM,

MICROSOFT_VC100_MFCLOC_X64.MSM, MICROSOFT_VC100_MFC_X64.MSM, MICROSOFT_VC100_OPENMP_X64.MSM)

However, after Jcserver verification: similar to MICROSOFT_VC100_*_X86.MSM do not add in, you can also print out the normal Crystal report. Suggest you put crruntime_13_0_1.msm, crruntime_13_0_1_ ZH_CN.MSM (English language Pack, in other languages, please choose a different language pack), CRRUNTIME_13_0_1_MAPS.MSM these three modules add in.

Just one problem: on systems with vs.net 2010 and Crystal Report for vs.net2010, if you install a crafted packager, you will be prompted to vs.net2010 create or modify the Crystal Reports file: "Invalid key number." If you have solved this file please give me a sound, hehe. My e-mail: jcserver @ 163.com

]

Description: Press F1 to bring up the help document in VS2010, search for the "merge module" keyword, and you will see more help for the Merge module deployment program.

Then right-click on the item's properties, tap the "Prerequisites" button, and in the popup dialog box, select the runtime (with 32-bit X86 and 64-bit X64) that corresponds to the version of your program, and note that 32 and 64 bits are selected according to the system selection, and the following radio button selects the second item " Download the prerequisites from the same location as my application, if you want to install. NET2.0 Prerequisites for the VS2010 installation project, there is no. NET 2.0 in the prerequisites, but we can find the prerequisite installation package for. NET 2.0 from the VS2008 program file. The DotNetFX folder under VS2008 C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages is installed, which is the prerequisite installation package for. NET 2.0. Copy the DotNetFX folder to the C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages with VS2010 installed and select it in VS2010. The prerequisites for NET 2.0. I have made the prerequisites for. NET 2.0 as an installation package: http://download.csdn.net/detail/hiwcn/3665808)

The preparation of this release is done, choose the build on the menu-build project or right-click Project point to Survive;

Note: (the "project" I mentioned above is not "project" in the upper menu of the VS toolbar; It is a project under your solution, such as a new installation project called SETUP1, which means SETUP1)

If the production of the installation program in the installation process fails to register a module, please go to the following URL to download a suitable for your system version of the file installation, you can avoid errors.

Crystal Report VS2010 version of the installation package, please select Download (jcserver finishing http://soft.hiw.cn):

1, Crystal Report version VS2010 IDE standard installation package:
Standard installation package for Crystal Report EXE files for VS2010 version.
SAP Crystal Reports, version for Visual Studio 2010-standard
Standard EXE installation package which installs the software into the Visual Studio IDE.
: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_1.exe

2, Crystal Report version VS2010 run-time 32-bit and 64-bit merge installation package:
Click once to install the package, the auto-run upgrade package that is used to create the application window can be installed and run with minimal user interaction.
SAP Crystal Reports, version for Visual Studio 2010-click Once
Click once installation package used to create self-updating windows-based applications which can be installed and run wit H Minimal user interaction.
: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_clickonce_13_0_1.zip

3, Crystal Report version VS2010 run-time 32-bit and 64-bit separate installation package:
Click once to install the package, the self-updating used to create the application window can be installed and run with minimal user interaction.

SAP Crystal Reports, version for Visual Studio 2010-click Once (+ Bit)
: Http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_32bit_13_0_1.msi

SAP Crystal Reports, version for Visual Studio 2010-click Once (+ Bit)
: Http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_64bit_13_0_1.msi

4, Crystal Report VS2010 version of the merge module installation package:
The merge Module installation package, which installs components for multiple application shares, is used to install packages in the VS2010 program to step through the components of the Crystal Report.

SAP Crystal Reports, version for Visual Studio 2010-merge Modules
Merge Modules installation package used to install components which is shared by multiple applications.
: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_mergemodules_13_0_1.zip

5. The. NET Framework 4 run-time engine 32-bit and 64-bit operating systems install packages separately:
SAP Crystal Reports runtime engine for. NET Framework 4 (32-bit)
32-bit: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip
SAP Crystal Reports runtime engine for. NET Framework 4 (64-bit)
64-bit: Http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip

official download page:http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp

vs.net2010 Crystal Report installation deployment [VS2010]

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.