Change paper format by code

How can i change the paper setup from Landscape to Portrait with code ?



you cannot change the paper orientation by C/AL coding. You can either use the report properties (but then you are “fixed” with that orientation) or you could “manipulate” the printer driver directly with an external programm. But that means that you need to know on which printer you are printing (or better, which printer driver is in charge printing) this report.

that sux

thanks 4 your reply