Solved

Visual Studio 2012 > SharePoint > ToolBox > Chart Control Object

Posted on 2013-05-17
4
2,509 Views
Last Modified: 2013-11-26
Hi,

When I fire up VS 2012 > New > Project > SharePoint 2010 project  ( farm solution ) and add  new  item (either Visual Web Part or Web Part ), the Chart Control Object under Toolbox >Data is greyed out.

I have under Reference Manager, checked System.Web.DataVisualisation.

How can I activate this Chart control object?

Thank you for your help.
0
Comment
Question by:Russellbrown
4 Comments
 
LVL 5

Expert Comment

by:milindsaraswala
ID: 39180340
If you need the chart in the toolbox, you can drag the dll from C:\Program Files (x86)\Microsoft Chart Controls\Assemblies (by default), to the toolbox. Or right click on the toolbar, "Choose items..."
0
 

Author Comment

by:Russellbrown
ID: 39183246
Thank you for the response. It did not work. I noticed when I select ASP.NET Web Forms Application the Chart icon is activated, but when I select SharePoint 2010 > Visual Web Part or Web Part the Chart icon remains greyed out.

Are there other considerations I may have missed?
0
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39401486
Hi,
the issue is that the .NET Framework built-in charting is only available starting with .NET 4 - but SharePoint 2010 solutions are based on .NET Framework 3.5 - therefore the SharePoint VS solution properties target framework is set to 3.5 - therefore you cannot select this library.

Only option you have is to download and utilize MSChart control:
http://www.microsoft.com/en-us/download/details.aspx?id=14422

As SharePoint is x64 only, ensure to select the right one :-)

HTH
Rainer
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now