Solved

asp.net, C# Invalid FORMATETC structure when using MS Chart

Posted on 2012-04-12
3
409 Views
Last Modified: 2012-04-17
Hello,

I have an ASP.NET web content form where I have installed MSChart application.
I have also installed this MS CHart control in the toolbox,  however, when I attempt to drag this control on to a webcontent form, I get the following error msg:

"The operation could not be completed.  Invalid FORMATETC structure".

 I have attached a screnshot for more details.

I am researching the deletion of a * .suo files, but I can't seem to find this file in my project/solution.

ANY help would be greatly appreciated.
invalid-formatetc-structure.jpg
0
Comment
Question by:Codeaddict7423
  • 2
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 37842530
What do you mean by "MS Chart"?  Are you talking about the old ActiveX control, or the new charting controls?

In order to see .suo files, you need to show hidden files in Windows Explorer.
0
 

Author Comment

by:Codeaddict7423
ID: 37843398
TheLearnedOne,

Thank you for the quick reply.  I was referring to the MSChart control that allows developers to display tabular data in a graphic format (ie: line charts, bar charts, pie charts, etc.)
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 37843680
ASP.NET is multi-threaded, and the MSChart.ocx is an COM ActiveX control, which is single-threaded.  The two don't play well together.  Also, it looks like a web page is not a proper site for the ActiveX control.

I would look into proper charting components for ASP.NET.

Built-in Charting Controls (VS 2010 and .NET 4 Series)
http://weblogs.asp.net/scottgu/archive/2010/02/07/built-in-charting-controls-vs-2010-and-net-4-series.aspx
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…

832 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