• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

ExportasFixedFormat to PDF Issue

Jabba1963

Member
Hi All,

Print Preview displays correctly - ie. page breaks are where I want them and whichever printer I select the output works as expected. However when I use the following code the resultant PDF file is ignoring the page breaks despite the IgnorePrintAreas being set to False

Code:
        ActiveSheet.ExportAsFixedFormat _
                Type:=xlTypePDF, _
                Filename:=FilenamePath, _
                Quality:=xlQualityStandard, _
                IncludeDocProperties:=True, _
                IgnorePrintAreas:=False, _
                OpenAfterPublish:=False

I have tried setting different default printers including CutePDF and BullZip PDF printers as well as other physical printers but alas no joy... the resultant output has page breaks in the wrong place.

I am running Excel 2010...

Ideas anyone ?
 
Whey heh - problem solved...

Options - Advanced - General (right down the bottom) - Scale Content for A4 or 8.5 x 11" paper sizes

Make sure this is Unchecked... NOT Ticked... and ExportasFixedFormat then adheres correctly to the Print Preview Page Breaks...

AND most importantly of course - Print Preview still works correctly... :)

Hope this helps someone in the future...

Cheers
Jabba1963
 
Back
Top