esr has asked for the wisdom of the Perl Monks concerning the following question:
which gave me an Exception error and didn't work. So I tried setting the value to zero. Same error. Setting the zoom value to a numeric value worked correctly so I knew the rest of the syntax was correct.$sheet->PageSetup->{Zoom}='False';
The frequently referred to "Using Win32::OLE and Excel - Tips and Tricks" document posted here indicated that the code needed to look like this:
I find this really bizarre. What is the difference between setting the value to zero or "false" and setting it using the variant value? I realize this is only partially a Perl question as it seems the apparent absurity is in the way Microsoft has "designed" the Office object package but I would appreciate any help anyone might be able to offer in understanding this.my $vtfalse = Variant(VT_BOOL,0); $sheet->PageSetup->{Zoom}=$vtfalse;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Excel FitToPages bizarrity
by InfiniteSilence (Curate) on Aug 25, 2005 at 21:20 UTC |