in reply to Re: Excel saving as PDF as 1 page
in thread Excel saving as PDF as 1 page

Thank you. This did not give any failure messages.
Sadly it did not work as the PDF file was written to two pages. Have you any idea how to make it use just one page?

Replies are listed 'Best First'.
Re^3: Excel saving as PDF as 1 page
by poj (Abbot) on Oct 25, 2015 at 08:46 UTC
    try
    use Win32::OLE qw(with); use Win32::OLE::Variant; my $vtfalse = Variant(VT_BOOL, 0); my $vtpages = Variant(VT_I4, 1); with ($sheet->PageSetup, 'Zoom' => $vtfalse, 'FitToPagesWide' => $vtpages, 'FitToPagesTall' => $vtpages );
    poj
      Brilliant. That works just as I wanted it to. Thank you for your help. It was good to find it first thing this morning.
Re^3: Excel saving as PDF as 1 page
by soonix (Chancellor) on Oct 25, 2015 at 07:50 UTC
      (This is a reply to your latest comment)
      Brilliant. That works just as I wanted it to. Thank you for your help. It was good to find it first thing this morning.