关闭

水晶报表10 开发和部署

标签: 报表mergeapplicationdependenciesmoduleprocessing
7454人阅读 评论(24) 收藏 举报
分类:

 在工作中用到了水晶报表,在这跟大家一起讨论分享下.
(注:前段时间写的时候,把合并模块弄错了,把项目放到干净的机器上跑的时候才发现错误。
修改后:cr10_net_merge_modules_chs.zip 换了 cr10_rdc_merge_modules.zip
)

    需要的水晶报表的组件有,水晶报表Crystal Reports V10.0 高级版该版本可以直接集成到vs.net2003.
    Crystal Reports 10 Advanced Developer (build 10.0.0.53327)下载地址:
    http://ftp.crystaldecisions.com/outgoing/Products/CR10DevEn.exe 这是序列号:
        License : AV860-01CS00G-U7000NC
        SN : 1231467890
用于水晶报表 10 RDC 部署的合并模块
该文件包含部署使用报表设计器组件的水晶报表 10 应用程序所需的合并模块。这些合并模块可以合并进基于MSI的安装包,以包含适当的运行时文件。

简体中文 (cr10_net_merge_modules_chs.zip)
http://support.businessobjects.com/communityCS/FilesAndUpdates/cr10_net_merge_modules_chs.zip.asp
cr10_net_merge_modules_chs.zip 解压后有四个合并模块分别,

CrystalReports10_NET_EmbeddedReporting.msm

·     This merge module contains the Windows Form and Web Forms viewers (CrystalReportViewer controls), .NET SDK assemblies, RAS SDK, report processing engine, database and export components. 
·     This merge module allows developers to select which database drivers are installed.  By default, all database drivers are installed.  For more information, refer to the  Customizing the Database Driver Installation Options section.
·     This merge module deploys all Crystal Reports runtime files on a single machine/tier.
    • Windows application where all report processing is within the application
    • Web application where all report processing is within the web application tier

 


CrystalReports10_NET_RemoteReporting.msm

·     This merge module contains Windows Form and Web Forms viewers, .NET SDK assemblies, RAS SDK

·     This merge module deploys Crystal Reports runtime to clients used to view/process reports from a remote server.

      • Windows or Web application processing reports on remote RAS server.
      • Windows or Web application opening reports from Crystal Enterprise and processing the reports on Page Server or RAS server.


CrystalReports10_NET_WebServiceReporting.msm

·     This merge module contains Windows Form and Web Forms viewers, .NET SDK assemblies

·     This merge module deploys Crystal Reports runtime to clients viewing Report Web Services.

      • Windows or Web applications accessing report web services.

CrystalReports10_maps.msm

  

·         This merge module contains mapping runtime files.

·         This merge module deploys runtime files for reports using Map objects.
 

·         This merge module is used in combination with the other version 10 merge modules.




我们除了CrystalReports10_maps.msm,添加其它三个合并模块
在CrystalReports10_NET_EmbeddedReporting.msm中填入
keycode: AV860-01CS00G-U7000NC

1)水晶报表10高级版的安装,首先我们运行vs.net2003的安装程序,把vs.net2003默认的水晶报表删除掉.然后安装水晶报表10高级版本.安装成功后会自动集成到vs.net2003.(注意要先删除水晶报表9的版本再安装要不会比较麻烦的哦)
2)水晶 报表的制作和原来的版本9没什么区别这里就不讲了(有个改变的地方是在导出excel的时候水晶报表10可以导出excel格式的excel文件)

这里我们讲下用水晶报表10开发的报表我们怎么部署到客户端上使用

1)新建“安装和部署项目”-->“安装项目”,确定后在我们的解决方案中多了个安装和部署的项目
2)右键点击刚建的安装项目-->添加--->项目输出-->从列表中选择主输出-->选择输出的项目
3)右键点击刚建的安装项目-->添加--->合并模块-->把我们下载到的10 net 部署的合并模块全部添加进去
4)注意有个CrystalReports10_NET_EmbeddedReporting.msm的模块,我们查看它的属性,把AV860-01CS00G-U7000NC填写到keycode属性值中,要不编译不通过的.
5)最后我们来编译生成我们项目的安装文件,setup.exe在客户端就可以安装正常使用了 .我在xp 上测试通过

web的水晶报表打包发布.

环境: vs2005自带报表(版本:10.2.3600.0),xp

打包步骤:如下

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.
我看你的问题可能是有第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.)
注: 当在项目中添加主输出时,几个水晶报表的依赖项也将被添加进去. 选择所有的水晶报表依赖项,把它从项目中排出,这样这些文件才不会安装到目标机器上

C:/Program Files/Microsoft Visual Studio 8/SDK/v2.0/BootStrapper/Packages/CrystalReports /
CRRedist2005_x86.msi
在目标机器上面的运行该文件即可

在xp环境上运行通过

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:27801次
    • 积分:368
    • 等级:
    • 排名:千里之外
    • 原创:8篇
    • 转载:1篇
    • 译文:0篇
    • 评论:25条
    文章分类
    最新评论