Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
PDF printer paper format in legal
posted

Hi, I'm trying to set the paper format into printers properties to be the same as report paper format, wich is legal in this case.

The output is a PDF file.

The printer paper format is always set as letter, even if the report is legal in preview mode.

How can I change the printer settings.

I tried this code without succes.

' define paper
report.Preferences.Printing.PaperOrientation = Documents.Report.Preferences.Printing.PaperOrientation.Landscape
report.Preferences.Printing.PaperSize = Documents.Report.Preferences.Printing.PaperSize.Legal

report.PaperOrientation = Documents.Report.Preferences.Printing.PaperOrientation.Landscape
report.PaperSize = Documents.Report.Preferences.Printing.PaperSize.Legal

report.MainSection.PageOrientation = Documents.Report.PageOrientation.Landscape
report.MainSection.PageSize = Documents.Report.PageSizes.Legal

Parents
No Data
Reply
  • 467390
    Offline posted

    Hi,

     I beleive that the Preferences.Printing settings that you are setting here only affect the report.Print method. I don't think a PDF document actually stores any printing preferences information in the document itself.

    You will probably want to set the PageSize on the section, but even then, I think this only affects the document layout, not the page size that the PDF reading will default to.

     

Children
No Data