Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Excel and Win32::OLE chart problems

by lvleph (Initiate)
on Jul 18, 2008 at 20:13 UTC ( #698725=note: print w/replies, xml ) Need Help??


in reply to Re^4: Excel and Win32::OLE chart problems
in thread Excel and Win32::OLE chart problems

I am having a similar problem. I need to add multiple series to one chart and so I don't believe I can use the ChartWizard.

Currently, I use the following code to add a series:
$Chart->SeriesCollection->Add($Sheet3->Range("D$num2:D$num1"));

This however does not set the XValues, which I try to do with the following code:
$Range = $Sheet3->Range("C$num2:C$num1");
$Chart->SeriesCollection($series)->XValues($Range); ;

This results in the following error:
Win32::OLE(0.1709) error 0x80020011: "Does not support a collection"
in METHOD/PROPERTYGET "XValues" at ./PollenAVG.pl line 149

Any Ideas? Thank you in advance.
  • Comment on Re^5: Excel and Win32::OLE chart problems

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://698725]
help
Chatterbox?
[LanX]: can't find a definition for the sound
[LanX]: Voiceless_palatal_ fricative
[Eily]: Lanx https://en. wikipedia.org/ wiki/Voiceless_pal atal_fricative
Eily got the Cowboy message
[Your Mother]: I prefer palatial fricatives.
[Lotus1]: https://en. wikipedia.org/ wiki/%C3%87
[Your Mother]: I'm headed out west, sucker.
[Lotus1]: the west is the best, get here we'll do the rest
LanX chjuman !
[Eily]: do you pronunce that /xju:mən/ then ?

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2017-03-27 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.