Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 MSChart Control

Author  Topic 

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-05-12 : 03:52:21
Hi,
I am not very familiar with including web controls in my asp projects.

I am making use of the mschart control.
I have got everything to work fine when browsing from my pc or any other pc with Visual Studio.NET installed on it.

When I test the project on non development pc's then the page returns an error saying object does not support this property or method.

I am assuming it is because this pc does not have the same version of the mschart control as mine does.

I know that using codebase in the object tag is supposed to sort this out. It is not working for me though.

The code I've seen on other sites uses codbase="mschart5.cab".
I do not have this file on my PC (Where I am hosting the project while still in development) and I can't find it on Microsoft's website either.

Does anyone know where I can get this file mschart5.cab or does anyone else know an alternative solution?

My code for the object tags is listed below.

<OBJECT ID="MSChart1" WIDTH=100% HEIGHT=95% name="MSChart1"
CLASSID="CLSID:{3A2B370C-BA0A-11D1-B137-0000F8753F5D}"
codebase="mschart5.cab" VIEWASTEXT>
</OBJECT>

Duane.

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-05-13 : 08:36:01
I think it comes with the Office Web Components library, you may need to re-install MS Office on the client computer(s) in order for it to work correctly. You may also have to review or change the client browser's settings regarding ActiveX controls.

FWIW, ActiveX controls in a web app can be an unbelievable pain, and they have security concerns as well. Unless you absolutely MUST have them, it's better to avoid them and look for a solution that delivers HTML/DHTML or XML results.
Go to Top of Page

Sitka
Aged Yak Warrior

571 Posts

Posted - 2004-05-13 : 12:57:16
Maybe it was something else I'm thinking of but I seem to remember mschart was Office version dependent as well. (office10,office11)


It is a rich creamy color with a high fat content of 5-7 percent. Being so high in fat, it is usually processed into butter, cheese, or yogurt. An average cow will produce 110 kg. Milk in a lactation period of an average of 149 days
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2004-05-13 : 13:57:43
I agree with Rob. Stay away from ActiveX controls if you can.

You might want to take a look at http://www.charfx.com I like their charting tool for .Net.

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2004-05-13 : 15:56:06
Thanks for the responses guys,
I can't do anything about it now (I'm on Holiday for 2 weeks) - I just thought I'd check what you guys have come up with.

I'll se what I can do when I'm back at the office.



Duane.
Go to Top of Page
   

- Advertisement -