I am attempting to setup a Data Warehouse reporting piece that works on the web and writes to an Excel Spreadsheet (for formatting reasons). I have a script that works wonderfully EXCEPT it refuses to allow me to change any PageSetup items like Header, Footer, etc.
The script runs fine on my WinXP IIS web, but NOT on my Win2000 web. If I remove the following section, the script runs. If I add it, I get this error:
Unable to set the FitToPagesWide property of the PageSetup class
Win32::OLE(0.1502) error 0x80020009: "Exception occurred"
in PROPERTYPUT "FitToPagesWide" at D:/Perl/site/lib/Win32/OLE/Lite
+.pm line 201
Here's the actual code snippet -- fairly straightforward OLE code,I think. Thoughts anyone? Even for a Win32 heretic?
'LeftHeader'=> "REPORT #DW2009A\rSummary Place of Service",
'CenterHeader' => "Empty",
'RightHeader' => "Test Report",
'LeftFooter' => "Done",
'CenterFooter' => "Now",
'Orientation' => xlLandscape,
'RightFooter' => "OK",
'PrintTitleRows' => "1:1");
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||