Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Wednesday, February 01, 2012

How to Make Microsoft Asp.Net Chart Controls work in SharePoint 2010

First Copy the System.Web.DataVisualization dll to the bin folder of your respective sharepoint site. Now add below steps in web.config. This will get you a Microsoft Asp.Net Chart WebPart into your SharePoint 2010 site. Here is the reference link i had followed.
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/29c02114-19a4-4f68-8043-dd1341634656

<appSettings>
  <add key="ChartImageHandler" value="storage=file;timeout=20;" />
</appSettings>


<compilation targetFramework="4.0">
 <assemblies>
  <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
 </assemblies>
</compilation>

<system.webServer>

<handlers>
      <add name="ChartImg" verb="*" path="ChartImg.axd"  type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"  />
    </handlers>
</system.webServer>


Also make sure that you've the following register directives

<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

No comments:

Post a Comment