Solved

Visual Studio 2012 > SharePoint > ToolBox > Chart Control Object

Posted on 2013-05-17
4
2,584 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

691 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