By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,702 Members | 1,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,702 IT Pros & Developers. It's quick & easy.

Javascript, OWC chart, DataLabelsCollection.Add() error.

P: n/a
Whenever I try to call ...DataLabelsCollection.Add I get the error
"Invallid Parameter".

if((document.chsp.charts(0).Type==18) ||
(document.chsp.charts(0).Type==19) ||
(document.chsp.charts(0).Type==20) ||
(document.chsp.charts(0).Type==9001) ||
(document.chsp.charts(0).Type==9002))
{
var dls;
dls =
document.chsp.charts(0).SeriesCollection(1).DataLa belsCollection.Add();
dls.HasPercentage = 'True';
dls.HasValue = 'True';
}
Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
jfizer wrote:
Whenever I try to call ...DataLabelsCollection.Add I get the error
"Invallid Parameter".

You are in a JavaScript forum. The question you pose
relates to Microsoft Office Web Components - Visual Basic.
You may wish to use a more appropriate forum for your
question.

Cheers, Rob.
Jul 23 '05 #2

P: n/a
On Tue, 21 Sep 2004 22:36:23 GMT, RobG <rg***@iinet.net.auau> wrote:
jfizer wrote:
Whenever I try to call ...DataLabelsCollection.Add I get the error
"Invallid Parameter".

You are in a JavaScript forum. The question you pose
relates to Microsoft Office Web Components - Visual Basic.
You may wish to use a more appropriate forum for your
question.

Cheers, Rob.


Nope, in fact I am not useing any VB script, ASP or any other such
stuff. 100% Javascript, which is what is causing my problems.

However I have managed to solve this one.
Jul 23 '05 #3

P: n/a
jfizer wrote:

Nope, in fact I am not useing any VB script, ASP or any other such
stuff. 100% Javascript, which is what is causing my problems.

However I have managed to solve this one.


I think you are mistaken - do you have a link to any
reference that shows DataLabelsCollection belongs to
JavaScript, CSS or HTML? I can find thousands (literally)
that relate to Microsoft VB Script.

A quick test would be for you to post code to this forum
that works in any browser other than IE and sits within
<script type="text/javascript"></script> tags.

Regards, Rob.
Jul 23 '05 #4

P: n/a
RobG wrote:
jfizer wrote:
Nope, in fact I am not useing any VB script, ASP or any other such
stuff. 100% Javascript, which is what is causing my problems.

However I have managed to solve this one.


I think you are mistaken - do you have a link to any
reference that shows DataLabelsCollection belongs to
JavaScript, CSS or HTML? I can find thousands (literally)
that relate to Microsoft VB Script.


What you don't understand is that VBScript is but a possible
interface language to a (document) object model, JScript or
JavaScript can serve as such as well if the interface provides
the appropriate language binding.
PointedEars
--
Syntax terror in line 42
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.