473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

How to use Microsoft Office Chart control ?


Hello,
I'm trying it use the Microsoft Office Chart control 11.0 in VB.net
(for a windows forms project) and can't seem to get it to work, I've
been playing around with various snippets of code. below is what I've
got at the moment, I'm trying to feed in literal numbers.

I placed a chart control on the form and called it ChartSpace1 and
adjusted a couple of settings to get it roughly as I want it, then ran
this code:

Dim chConstants
Dim chtNewChart

chConstants = ChartSpace1.Constants
chtNewChart = ChartSpace1.Charts.Item(0)
chtNewChart.SetData(OWC11.ChartDimensionsEnum.chDi mCategories,
0, "Test")
It fails on the last line, with an "unspecified error"
I'm not looking to do anything complicated, just a simple bar graph,
and no, I do not want to pay $400 for a third-party control :-)

Thanks for any help offered.

Scott

Nov 21 '05 #1
3 11619
Scott H <e@mc.sqr> wrote in news:l6tvv0903bfikqftd8bemrtssoef90hoip@
4ax.com:

Hello,
I'm trying it use the Microsoft Office Chart control 11.0 in VB.net
(for a windows forms project) and can't seem to get it to work, I've
been playing around with various snippets of code. below is what I've
got at the moment, I'm trying to feed in literal numbers.

I placed a chart control on the form and called it ChartSpace1 and
adjusted a couple of settings to get it roughly as I want it, then ran
this code:

Dim chConstants
Dim chtNewChart

chConstants = ChartSpace1.Constants
chtNewChart = ChartSpace1.Charts.Item(0)
chtNewChart.SetData(OWC11.ChartDimensionsEnum.chDi mCategories,
0, "Test")
It fails on the last line, with an "unspecified error"
I'm not looking to do anything complicated, just a simple bar graph,
and no, I do not want to pay $400 for a third-party control :-)

Thanks for any help offered.

Scott


I gave up on the chart control. A free version of the dundas winchart
control is in the resource kit:
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx
download, or get MS to send it to you for free (or do both)

It says "powered by dundas winchart" on the control in your app as you
didn't pay for it. Oh, it puts something similar on printouts too (though
you can save the chart as a picture, draw a white box over the added
caption and then print the picture *cough cough*).
Nov 21 '05 #2

"jo0ls" <jo***@invalid.null> wrote in message
I gave up on the chart control. A free version of the dundas winchart
control is in the resource kit:
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx
download, or get MS to send it to you for free (or do both)

It says "powered by dundas winchart" on the control in your app as you
didn't pay for it. Oh, it puts something similar on printouts too (though
you can save the chart as a picture, draw a white box over the added
caption and then print the picture *cough cough*).


Nice one, thanks for that joOls I'll check it out.

Scott H
Nov 21 '05 #3
Bob
You could also try our free XYGraph.

----
Bob
http://www.componentXtra.com
Free Graph Component for .NET
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Hubbard | last post by:
I'm trying to dissplay a chart using the Microsoft Office XP Web Services Toolkit 2.0 and the associated web components. But, I'm having trouble displaying a chart using literal data. Anybody...
3
by: Jasper Recto | last post by:
Is it possible to find Microsoft's Chart Control (MSChart.OCX) Active x component and beable to use it in VB.Net 2003? Where would I find this particular control? Thanks, Jasper
1
by: Jim | last post by:
I have this chart on a form. I'm trying to get this chart to render only if the user chooses to do so. This because of that the chart is quite complex and takes some time to render. I know that I...
2
by: Loane Sharp | last post by:
Hi there I'm producing charts on the fly using Office Web Components and VBScript in my ASP.NET application. The problem for me is that VBScript (which I'm new at) and VBA (which I have a bit of...
1
by: Robin Tucker | last post by:
Heres and interesting problem: I have a VB.NET program that creates reports via. Word Automation. This all works fine. What I want to do as part of this report generation process is to embed a...
0
by: Scott H | last post by:
Hello, I'm trying it use the Microsoft Office Chart control 11.0 in VB.net (for a windows forms project) and can't seem to get it to work, I've been playing around with various snippets of code....
0
by: Tom Rahav | last post by:
Dear All! I use Visual Basic .NET 2003 and want to produce graphs by using Office Chart 11.0. I would like to provide this chart with data from an Office Spreadsheet 11.0 and I use the...
5
by: Tomaz Koritnik | last post by:
Anyone knows of free or commercial pie chart control that has this features: - I need only 2D pie chart type - Can be commercial but not too expensive - Save chart to WMF or EMF - Since chart...
0
by: heleena | last post by:
I want to add the vertical scroll bar in the chart of officce chart control dynamically
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.