Chinaunix首页 | 论坛 | 博客
  • 博客访问: 223051
  • 博文数量: 55
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 261
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-19 01:34
文章分类

全部博文(55)

文章存档

2013年(37)

2009年(6)

2008年(12)

我的朋友

分类: C#/.net

2013-09-05 20:07:18

配置水晶报表组件首先,确认服务器上的报表组件的版本是否正确。

如果你使用的是

来源:http://bloggingabout.net/blogs/jschreuder/archive/2007/12/10/crystal-reports-for-visual-studio-2005-deployment-trouble.aspx

Deploy Crystal components

First, and rather obvious, is to make sure the correct version of Crystal components are installed on the server. If you have the Visual Studio SDK installed, you can look for CRRedist2005_x86.msi, which is in this folder C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports on your machine. Running that installation on the server will make sure all components required for Crystal Reports are properly installed on your machine.

If you have a setup project for your web application, you can add a merge module to that project. Crystal Reports provides four merge modules for download at . Depending on your needs, you may need to add any combination of these to your setup project. Which module is required for your application can be found in this document on the Business Objects support site.

Web.Config settings

In order for a Crystal Reports viewer to work, the following settings must be added to the appSettings section in the web.Config file:

This will ensure that the temporary images for Crystal are removed when they are no longer required. The following setting must be added the the httpHandlers section.

CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

This is required, because otherwise all you will see is an empty box with a red cross in it.

aspnet_client files

Last, but certainly not least, check the aspnet_client folder in the root folder of your web site. This folder should contain a folder with the name CrystalReportWebFormViewer3. That folder must exist in the following path: system_web\2_0_50727. If that folder is not there, copy it from your local machine. It should be in the folder C:\WINNT\Microsoft.NET\Framework\v2.0.50727\ASP.NETClientFiles.

阅读(2081) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

java_123452015-02-03 10:40:46

水晶报表遇到这个问题还是比较头疼的,我以前还遇到过路径不对之类的问题,搞了半天才弄好,我倒是觉得的话如果经常遇到这类问题,换finereport做报表应该要比用水晶更省事,因为你如果经常出问题的话就会越来越麻烦,finereport的话是零编码设计相对出错率要小很多