技不如人

Welcome to Rickel's blog.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

部署带Crystal Reports的Web应用程序

Posted on 2005-11-23 12:56  Rickel  阅读(499)  评论(0编辑  收藏  举报

To deploy your application, you need to create a setup project and add the necessary merge modules to your application before you build your solution.

  1. Open your Web or Web Services application.
  2. In the Solution Explorer, right-click your Web or Web Services application solution, point to Add then click New Project.
  3. In the Add New Project dialog box, select Setup and Deployment Projects in the Project Types pane and select Web Setup Project in the Templates pane. Click OK.
  4. In the Solution Explorer, right-click the WebSetup Project, point to Add then click Project Output.
  5. In the Add Project Output Group dialog box, select Primary output and Content Files and click OK.

    When the Primary output is added to your project, any dependencies, such as the Crystal_Managed2003.msm or dotnetfxredist_x86.msm, are added automatically.

  6. In the Solution Explorer, right-click the WebSetup Project, point to Add then click Merge Module.
  7. In the Add Modules dialog box, select the following merge modules to add to your Setup project and click Open:
    • Crystal_Database_Access2003.msm
    • Crystal_Database_Access2003_enu.msm
    • Crystal_regwiz2003.msm

    For a description of these merge modules see Crystal Reports Merge Modules.

  8. In the Solution Explorer, right-click the Crystal_regwiz2003.msm file and choose Properties.
  9. In the Properties window, expand MergeModuleProperties and enter a valid license key in the License Key properties box.
    Note   Providing the license key is a mandatory step whenever you deploy a Crystal Reports for Visual Studio .NET application.

    A license key will be given to you once you have registered Crystal Reports for Visual Studio .NET. You can find the license key in the About dialog box. From the Help menu, choose About Microsoft Development Environment. The keycode is listed in the Installed Products field.

  10. From the Build menu, choose Build Solution to build your application.

    When deploying to a client or server computer, always ensure that the computer already has the .NET Framework installed.