rbid has asked for the wisdom of the Perl Monks concerning the following question:
Hello
Does someone have an example of generating a "Surface" (xlSurface) chart in Excel using perl.
All the examples talk about simple charts but not about Surface charts which are 3D charts..
... my $Range = $Sheet->Range('a1:d5'); my $Chart = $Excel->Charts->Add; $Chart->{ChartType} = xlSurface; # <<<<<<==== I get an exception here $Chart->SetSourceData({Source => $Range, PlotBy => xlColumns}); $Chart->{HasTitle} = 1; $Chart->ChartTitle->{Text} = "Some Title"; ...
The exception I get when running the script is:
Win32::OLE(0.1709) error 0x80020009: "Exception occurred" in PROPERTYPUT "ChartType" at sd_reporter.pl line 224
Any Hint?
Thanks in advance.
--- Ricky Marek.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win::OLE Surface Chart...
by davies (Monsignor) on Aug 17, 2011 at 09:47 UTC |