Crystal Reports 10 and .NET部署办法.

Deploying an ASP.NET Application

The following procedures assume that you already have a Web application or Web services application ready for deployment.  To deploy a Web application using the Crystal Reports merge modules:

1. In Visual Studio .NET, open your Web application, go to the View menu, and select Solution Explorer.  Right-click your Web application solution and from the pop-up menu, select Add then click New Project.

2. The Add New Project dialog box appears. Select Setup and Deployment Projects in the left pane and select Web Setup Project in the right pane. Click OK.

3. In the Solution Explorer, right click the Web Setup Project and select Add then click Project Output.

4. The Add Project Output Group dialog box appears. Select Primary Output and Content Files to add to your Web Setup project. 

NOTE

When the Primary Output is added to the project, several Crystal Reports detected dependencies will be added. 

Select all of the Crystal Reports dependencies and right-click on the highlighted files and select ‘Exclude’ so that these files are not installed on the target machine.

 

5. In the Solution Explorer, right-click the Web Setup project and select Add then click Merge Module.

6. The Add Modules dialog box appears.  Select the appropriate merge modules (See section above titled Crystal Reports 10 Merge Modules) and add them to your project.  Click OK.

*** Steps 7 and 8 are for CrystalReports10_NET_EmbeddedReporting.msm only ***

 

7. From your Setup project, select the Crystal Reports merge module (you just added) to display the properties.

8. Expand the MergeModuleProperties and enter a valid license key the in Keycode Properties box.

The license key is the alphanumeric string you receive when registering Crystal Reports. This is mandatory when you deploy a Crystal Reports for Visual Studio .NET application using CrystalReports10_NET_EmbeddedReporting.msm.

For a description of the other configuration options, please see the section above titled
Customizing the Database Driver Installation. 

 

NOTE

A license key will be given to you once you have registered Crystal Reports for Visual Studio .NET. 

You can also find the license key by opening VS .NET and going to the 'Help' menu and selecting 'About…'.  Under the 'Installed application list' is the license key for Crystal Reports 10 for Visual Studio .NET.

 

***

9. To build your Web Setup project, highlight your deployment package (websetup1) in the Solution Explorer, right-click and select Build. You are now ready to deploy your ASP.NET Web application.

 

Deploying a Windows Application

The following procedures assume that you already have a Windows application ready for deployment.  To deploy a Windows application using the Crystal Reports merge modules:

1. In VS .NET, open your Windows application and go to the View menu and select Solution Explorer.  Right click your Windows application solution and from the pop up menu, select Add then click New Project

2. The Add New Project dialog box appears.  Select Setup and Deployment Projects in the left pane and select Setup Project in the right pane.   Click OK.

3. In the Solution Explorer, right click the new setup project and select Add then click Project Output

4. The Add Project Output Group dialog box appears.  Select Primary Output to be added to your Setup project. 

NOTE

When the Primary Output is added to the project, several Crystal Reports detected dependencies will be added.  Select all of the Crystal Reports dependencies and right-click on the highlighted files and select ‘Exclude’ so that these files are not installed on the target machine.

 

5. In the Solution Explorer, right click the Setup project and select Add then click Merge Module

6. The Add Modules dialog box appears.  Select the appropriate merge modules (See section above titled Crystal Reports 10Merge Modules ) and add them to your project.  Click OK

*** Steps 7 and 8 are for CrystalReports10_NET_EmbeddedReporting.msm only ***

 

7. From your Setup project, select the Crystal Reports merge module you just added to display the properties.

8. Expand the MergeModuleProperties  and enter a valid license key the in Keycode Properties box. The license key is the alphanumeric string you receive when registering Crystal Reports. Please note that this is not the 10-digit registration number.  This is mandatory whenever you deploy a Crystal Reports for Visual Studio .NET application using CrystalReports10_NET_EmbeddedReporting.msm.  

For a description of the other configuration options, please see the section above titled
Customizing the Database Driver Installation.

特别要注意不同的地方是下面的备注:

部署时填入合并模块的注册号码不是在并机安装水晶报表时输入的序列号,而是安装之后在VS.NET中重新生成的一串号码(打开.NET,菜单,帮助,关于即可看到),这样才能正确发布..

 

NOTE

A license key will be given to you once you have registered Crystal Reports for Visual Studio .NET. 

You can also find the license key by opening VS .NET and going to the 'Help' menu and selecting 'About…'.  Under the 'Installed application list' is the license key for Crystal Reports for Visual Studio .NET.

 

 

9. To build your Setup project, right-click your deployment package (setup1) in the Solution Explorer, and select Build. You are now ready to deploy your Windows application.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值