Solved

Visual Studio 2012 > SharePoint > ToolBox > Chart Control Object

Posted on 2013-05-17
4
2,547 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

This collection of functions covers all the normal rounding methods of just about any numeric value.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
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…

856 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