Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl & Win32

by mlh2003 (Scribe)
on Mar 18, 2005 at 11:32 UTC ( #440671=note: print w/replies, xml ) Need Help??


in reply to Exporting an Excel Chart to PNG using Win32::OLE

Not sure if it was a typo in your code, but you define $savename in the innermost loop, but write to $savename1 (the FileName parameter) in the Export method when writing the image.
_______
Code is untested unless explicitly stated
mlh2003

Replies are listed 'Best First'.
Re^2: Perl & Win32
by gellyfish (Monsignor) on Mar 18, 2005 at 11:42 UTC

    Well spotted, this is of course why it says:

    Execute your scripts with perl -w and use strict - this catches most of your errors.
    in the Using OLE with Perl FAQ that comes with ActivePerl.

    /J\

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://440671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-10-17 20:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (72 votes). Check out past polls.

    Notices?