六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 142|回复: 0

ASP.NET Chart Controls in SharePoint 2010

[复制链接]

升级  22%

198

主题

198

主题

198

主题

进士

Rank: 4

积分
610
 楼主| 发表于 2012-12-29 11:20:22 | 显示全部楼层 |阅读模式
<div id="cnblogs_post_body">sharepoint2010自带的图表webpart已经够不错了。功能强大,图表漂亮。支持的数据源也多。但是有个时候确实满足不要了特定的要求,比如跨网站集访问数据源。虽说有Excel Services,但是死活配置不成功,于是乎想利用Asp.net for chart(.NET3.5版本)控件自己定义一个。
1、首先需要引用System.Web.DataVisualization.dll

2、开发,此过程省略。
3、发布到sharepoint2010注意事项
需要配置站点下的web.config,配置如下

1. The web.config entry for <httpHandlers> is:  
<httpHandlers>  
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"  
validate="false" />  
</httpHandlers>  
1. The web.config entry for <handlers> is:  
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST"  
path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />  
3. The web.config entry for <appSettings> is as follows (make sure that the folder mentioned is present and the web site's account can write to it):  
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\Temp\;" />
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表