VC++ API for .net chart component

B

bill

All,


I realize this is perhaps not the correct forum for this question, but
it has proven difficult to find exactly the right forum. I have in the
past done some charting using VB from both Excel and Access. There are
plenty of examples and I found the process fairly straightforward. I am

now in the situation where I would like to program the MS Chart Control

from a Windows Form in the .NET environment using VC++. I cannot seem
to find any examples of how to use the MS Chart Control from a VC++
Windows Form. There are VB examples and this is usually enough to get
me started. But in this case I am a little stuck. Here is the best I
have been able to do so far after dragging the control onto my form:


axMSChart->set_TitleText(S"My Chart");
axMSChart->set_Width(200);
(and a couple of other simple minded things)


But all of the VB examples have enumerations that I cannot seem to
figure out the VC++ namespace for. Not to mention that the VB methods
do not exactly (or even closely) match the VC++ methods. I thought I
could just deduce everything from intellisense, but no such luck. Also,

the Datasource dropdown for the chart control does not offer any
choices eventhough I have a couple of datasets on the form.


Any suggestions (including where I should post this question) would be
greatly appreciated.


TIA,


Bill
 
A

Alvin Bruney - ASP.NET MVP

this is the right forum. there are no C++ docs. about the closest you will
find are C# docs and these are only in the black book. Another thought will
be to convert the vb.net code to C++ using a third party utility. I don't
have a link to a third party utility at the moment.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top