Set page setup parameters via macro

    Set page setup parameters via macro


    the automatic page setup does not work correctly in my reports, so I select the percentage manually to be able to print or export to pdf in a nice layout.

    Now I have a report where users can select which columns they like to be displayed. So I need to change the percentage of the zoom factor, depending on the selected columns. Is there a way to change it via macro ? Perhaps the layout as well (landscape/portrait) and other parameters as well ?

    Thanks a lot in advance for your support,