Skip to main content

[archive] mschart.ocx error

  • February 25, 2008
  • 13 replies
  • 0 views

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.

13 replies

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
You would need a license key for the chart. If you add it in AcuBench, it will be automatically filled in for you.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
Rob, I need a bit more info for that to help me... I have tried creating the control on my form in Acu, but it gives me the error that it can't create the OCX.MSCHART error.

I may not understand what you meant by "add it in AcuBench".

My guess is that it may be failing whatever it's supposed to do to create the license that is causing me this problem.

As I mentioned, I can't open up charts others created either, I get a similiar error even though they added it, show the license and compiled it. They run and see the chart, I get an error.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
I get the understanding you are getting this problem when you use Acubench and drag and drop the control on the form?
If so, this is an issue of missing the development license of the MS Chart control. This is differente from the deployment license that the runtime instantiates.
The difference in these two modes are that an IDE like Acubench requires a development license to get access to all properties. The runtime on the contrary only requires a deployment license, which in fact for many controls are optional.
The license you see populated in the license key property is a deployment license. Acubench retrieves this from the control with the help of the development license.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
I get the understanding you are getting this problem when you use Acubench and drag and drop the control on the form?
If so, this is an issue of missing the development license of the MS Chart control. This is differente from the deployment license that the runtime instantiates.
The difference in these two modes are that an IDE like Acubench requires a development license to get access to all properties. The runtime on the contrary only requires a deployment license, which in fact for many controls are optional.
The license you see populated in the license key property is a deployment license. Acubench retrieves this from the control with the help of the development license.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
I was able to get this to work by installing VB Express, but it appears I may be able to use mschart.dll to accomplish the same thing. Thanks for the help.

Also, instead of doing that, we found a possible fix on MSDN called licreqst.exe

However, now I get an issue sating I am missing a resource file, but when I go look in my resource path I see the .res file there. Any ideas on why I would get that?

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
When you installed VB Express, you achieved two things:
1. A developer license installed, thus Acubench will also work and you will be able to generate deployment licenses.
2. The MsChart control gets installed, from your description it sounds like it was not installed, but that can't be right if you were able to drag and drop it...

As far as licreqst.exe, it will certainly help you get a deployment license, but it will nevertheless depend on the precense of a developer license in order to do that.

Note that the runtime (wrun32.exe) will automatically apply the deployment license if a license have not been provided with the LICENSE KEY statement.

As such, you will only need the licreqst.exe for other controls than the ones we have listed.

The res file is generated by Acubench and is a resource file, it is a state condition of the control from design time and includes the deployment license. This is a binary file and cannot be manually made.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
What I did was get the vb6controls.reg file from another developer inhouse - that sorted it for me.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
What I did was get the vb6controls.reg file from another developer inhouse - that sorted it for me.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
I had someone export parts of the vb6 reg and I applied it without any luck. However, I didn't take the whole reg entry for vb6 which may have been the issue.

I can indeed drag and drop the control in Acubench. I can manipulate it setting defaults, chart type and so on. It shows my license and all that.

...the .res file was generated by my generate I'm assuming and is located in my project path under project properties "Resource:" but when I compile I get the error

"Missing resource file: 'pgmname.res'"

...again, I see the res file in my path that is set up under project properties, so I'm a bit confused on how I get the program to "find and use" that .res file.


********** UPDATE **************** I found that the project properties "resource" is only being used for the generation. Once this path was added to my copylib path, it compiles without issue and is working great.


BTW, has anyone had an issue using this where your exceptions process is not being called and the entire session of the application is closed when you exit the chart?

Thanks for all the help on this.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
I figure you have to define "exit the chart". Do you exit the ACCEPT or?

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
I was able to get around this issue by entering any other field on the screen that acu could focus on. It did not appear to be taking the chart as an entry field and was not returning exception values. I have added a couple push buttons and a list box for showing the data values which appears to have fixed my error exiting.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
I was able to get around this issue by entering any other field on the screen that acu could focus on. It did not appear to be taking the chart as an entry field and was not returning exception values. I have added a couple push buttons and a list box for showing the data values which appears to have fixed my error exiting.

[Migrated content. Thread originally posted on 25 February 2008]

I am getting an error "Can't create OCX.MSCHART control" when trying to add this active-x control to my screen. I have been working with someone else on site who has this working and we can't seem to make heads or tails as to why it will not work on my computer. In addition, sceens that we have already got working will not load on my computer either, instead I get "Error creating ActiveX control" when it tries to display the chart.

I have the OCX
ran regsvr32 (and it worked)
created my .def file...
The control is in my path.
The active-x control is loaded to acubench.

The only thing I have seen is on his computer when I look at it, the properties include a license key field, which mine does not. This makes me think I may need to do an install of some sort, not just use regsvr.

Not sure what else I would need to provide. I would have included version info, but it shouldn't matter since both of us are using the same version of AcuBench and we are both on XP.

Please let me know if you need any other info to help with this.
Having a control able to receive focus, and hold it, is required for the ACCEPT to stay put. Normally a Close button would do.