473,396 Members | 1,968 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,396 software developers and data experts.

Adding MSChart to a windows forms project

I don't know any thing about c#, I really need to do this in visual c++. I
don't manually wrap the dll but since it's called AxInterop.OWC10.dll I
assume visual studio has done that for me.

"Steve Alpert" wrote:
Richard wrote:
I have Visual C++ .net 2003 and am trying to add a chart to a form. When I
try and use MSChart or any other of the activeX controls (ie MS Calendar) I
get an error message saying that it can't find a dll file but if I look in
the debug directory of the project file it's there.

Some help please. Or an other way of adding charts to my application that
doesn't involve complicated coding or buying 3rd party software.


Are you using the InterOp to wrap the DLL? You can't just add an
ActiveX DLL to a C# project...

/steveA

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces


Nov 17 '05 #1
5 5005
Richard wrote:
I don't know any thing about c#, I really need to do this in visual c++. I
don't manually wrap the dll but since it's called AxInterop.OWC10.dll I
assume visual studio has done that for me.

"Steve Alpert" wrote:

Richard wrote:
I have Visual C++ .net 2003 and am trying to add a chart to a form. When I
try and use MSChart or any other of the activeX controls (ie MS Calendar) I
get an error message saying that it can't find a dll file but if I look in
the debug directory of the project file it's there.

Some help please. Or an other way of adding charts to my application that
doesn't involve complicated coding or buying 3rd party software.


Are you using the InterOp to wrap the DLL? You can't just add an
ActiveX DLL to a C# project...


I created a new project (C++ managed, window form). I then did an add
reference, surfed to c:\windows\system32\mschart.ocx and added it. It
appears as MSChartLib in the reference list.

Add:
using namespace Interop::MSChartLib;

and finally

MSChart * chart; // com ChartClass

/steveA

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces

Nov 17 '05 #2
I've searched my whole computer and I can't find the file mschart.ocx, how do
I get it?

"Steve Alpert" wrote:
Richard wrote:
I don't know any thing about c#, I really need to do this in visual c++. I
don't manually wrap the dll but since it's called AxInterop.OWC10.dll I
assume visual studio has done that for me.

"Steve Alpert" wrote:

Richard wrote:

I have Visual C++ .net 2003 and am trying to add a chart to a form. When I
try and use MSChart or any other of the activeX controls (ie MS Calendar) I
get an error message saying that it can't find a dll file but if I look in
the debug directory of the project file it's there.

Some help please. Or an other way of adding charts to my application that
doesn't involve complicated coding or buying 3rd party software.

Are you using the InterOp to wrap the DLL? You can't just add an
ActiveX DLL to a C# project...


I created a new project (C++ managed, window form). I then did an add
reference, surfed to c:\windows\system32\mschart.ocx and added it. It
appears as MSChartLib in the reference list.

Add:
using namespace Interop::MSChartLib;

and finally

MSChart * chart; // com ChartClass

/steveA

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces

Nov 17 '05 #3
dunno.... I just did a search "dir/s" from c:\windows and there it was.
Guess you're on your own on that one..

/steveA

Richard wrote:
I've searched my whole computer and I can't find the file mschart.ocx, how do
I get it?

"Steve Alpert" wrote:

Richard wrote:
I don't know any thing about c#, I really need to do this in visual c++. I
don't manually wrap the dll but since it's called AxInterop.OWC10.dll I
assume visual studio has done that for me.

"Steve Alpert" wrote:

Richard wrote:
>I have Visual C++ .net 2003 and am trying to add a chart to a form. When I
>try and use MSChart or any other of the activeX controls (ie MS Calendar) I
>get an error message saying that it can't find a dll file but if I look in
>the debug directory of the project file it's there.
>
>Some help please. Or an other way of adding charts to my application that
>doesn't involve complicated coding or buying 3rd party software.

Are you using the InterOp to wrap the DLL? You can't just add an
ActiveX DLL to a C# project...


I created a new project (C++ managed, window form). I then did an add
reference, surfed to c:\windows\system32\mschart.ocx and added it. It
appears as MSChartLib in the reference list.

Add:
using namespace Interop::MSChartLib;

and finally

MSChart * chart; // com ChartClass

/steveA

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces

Nov 17 '05 #4
maybe it comes with office?

/steveA

Richard wrote:
I've searched my whole computer and I can't find the file mschart.ocx, how do
I get it?

"Steve Alpert" wrote:

Richard wrote:
I don't know any thing about c#, I really need to do this in visual c++. I
don't manually wrap the dll but since it's called AxInterop.OWC10.dll I
assume visual studio has done that for me.

"Steve Alpert" wrote:

Richard wrote:
>I have Visual C++ .net 2003 and am trying to add a chart to a form. When I
>try and use MSChart or any other of the activeX controls (ie MS Calendar) I
>get an error message saying that it can't find a dll file but if I look in
>the debug directory of the project file it's there.
>
>Some help please. Or an other way of adding charts to my application that
>doesn't involve complicated coding or buying 3rd party software.

Are you using the InterOp to wrap the DLL? You can't just add an
ActiveX DLL to a C# project...


I created a new project (C++ managed, window form). I then did an add
reference, surfed to c:\windows\system32\mschart.ocx and added it. It
appears as MSChartLib in the reference list.

Add:
using namespace Interop::MSChartLib;

and finally

MSChart * chart; // com ChartClass

/steveA

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces

--
Steve Alpert
my email Fgrir_Nycreg @ vqk.pbz is encrypted with ROT13 (www.rot13.org)
and spaces

Nov 17 '05 #5
or VB6??

/steveA
Nov 17 '05 #6

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

Similar topics

0
by: Gerhard Swart | last post by:
Good Morning, I have a licensed .Net product. Meaning I can develop and deploy my projects. I want to use MSChart in my latest project. Now I am not sure about the licensing of MSChart. As far...
1
by: arc | last post by:
My web application is using MSChart for reporting. (until i port it to some decent reporting tool) How to make sure all the web clients (IE atleast) have MSChart on their system to view these...
1
by: Jonas L | last post by:
I have created a derived version of a normal form, e.g. called MyForm (public class MyForm : System.Windows.Forms.Form). The form is simply specifing a standard icon that we use within the company....
0
by: Dave Elliott | last post by:
After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row that is after the newly added row without getting bizarre results. I have added the...
11
by: JJ | last post by:
I am a novice at VB.NET and am trying to get the following code, downloaded from MSDN to run. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
2
by: Saad Alghamdi | last post by:
I have been using MSchart controller for long time that I'm very familiar with and it would be very hard for me to switch to another graphical controller. However, I have read many comments...
0
by: JS | last post by:
Hello I want translate a project from VB6 to VB.Net 1.0 In this project I have a graph with a MsChart COM control. When I want make reference (Projet/Ref /Com controle) to this chart I have an...
1
by: steve | last post by:
Using Mschart in VB.net 2005 I get the error 'System.ExecutionEngineException' when I run the print code below.. The Graph display data OK on the form ...
0
debasisdas
by: debasisdas | last post by:
Here's a simple VB6 code snippet that uses the MSChart control to display Charts in VB6.0. To use this sample, please following steps Create a new project in VB6 Pull down the Project menu and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.