Is it possible to program the page setup?

The pagesetup statement opens the page setup dialog where the setup can be amended manually. It would be great if it was possible to change the orientation and scale programmatically but it seems that this is not the case.

Those are both options in the printtopdf statement.

The printtopdf statement also has the option of printing, rather than making a pdf, so it should do exactly what you want to do.

Thanks Dave. The way that some of these options are hidden where you’d least expect them keeps life interesting :slight_smile: