刚开始在.NET上做B/S,项目要发布了碰到了水晶报表(V10)的打包问题
特此求助

解决方案 »

  1.   

    官方打包说明:
    http://support.businessobjects.com/fix/merge_modules.asp
    先在这里下载10的合并模块,(应该是下载这个版本的cr10_net_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.
    (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.
      

  2.   

    合并模块后还是不行啊,报错:带有 CLSID {CF76A644-314B-404D-8D45-F08B51FF990B} 的 COM 对象无效或未注册。 
    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Runtime.InteropServices.COMException: 带有 CLSID {CF76A644-314B-404D-8D45-F08B51FF990B} 的 COM 对象无效或未注册。源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
    [COMException (0x80040154): 带有 CLSID {CF76A644-314B-404D-8D45-F08B51FF990B} 的 COM 对象无效或未注册。]
       CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +11[TypeInitializationException: “CrystalDecisions.CrystalReports.Engine.ReportDocument”的类型初始值设定项引发异常。]
       CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
       WebKhjxc.Web.Report.StockAnalyse_Total.Bind() +71
       WebKhjxc.Web.Report.StockAnalyse_Total.Page_Load(Object sender, EventArgs e) +167
       System.Web.UI.Control.OnLoad(EventArgs e) +67
       System.Web.UI.Control.LoadRecursive() +35
       System.Web.UI.Page.ProcessRequestMain() +731 
    --------------------------------------------------------------------------------
    版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
      

  3.   

    http://blog.csdn.net/lyb_abiandbel/archive/2005/09/05/471660.aspx
      

  4.   

    看清楚这个:(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.   

    感谢BearRui,我又把《Deploying Crystal Reports 10 for .NET.doc》看了一下,
    里面说的很详细,问题已经解决了
    同时也感谢jxufewbt的关注
    结帐