merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
I found the following on another web site$Book->ExportAsFixedFormat( { Type => xlTypePDF, Filename => "$pdffilename", Quality => $excel->{xlQualityStandard}, IncludeDocProperties => $excel->{True}, IgnorePrintAreas => $excel->{False}, OpenAfterPublish => $excel->{False}, } );
I tried to adapt this for Perl with the following as I thought, if successful, it will be used in the IncludeDocProperties => $excel->{True}, option' The next 2 lines will force the PDF to fit the range onto one page ActiveSheet.PageSetup.FitToPagesWide = 1 ActiveSheet.PageSetup.FitToPagesTall = 1
However, I got the following error$sheet = $Book -> Worksheets("Sheet1"); $sheet -> Activate; $sheet->PageSetup->FitToPagesWide = 1; $sheet->PageSetup->FitToPagesTall = 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Excel saving as PDF as 1 page
by soonix (Chancellor) on Oct 24, 2015 at 21:01 UTC | |
by merrymonk (Hermit) on Oct 24, 2015 at 21:34 UTC | |
by poj (Abbot) on Oct 25, 2015 at 08:46 UTC | |
by merrymonk (Hermit) on Oct 25, 2015 at 09:22 UTC | |
by soonix (Chancellor) on Oct 25, 2015 at 07:50 UTC | |
by merrymonk (Hermit) on Oct 25, 2015 at 09:24 UTC |