Designer output in both portrait and landscape format

Hi all,

I have several templates in the same designer, some need to be printed in portrait format, and some need to be printed in landscape.

Although I have created separate media for templates in different format, but the printing output is still in one single format only. Is there any way by the output module, that I can print these templates in separate format by separated output tray?

Thanks and regards,

I think one of solution is to use script to control to on/off each the section (portrait/landscape) by a fields value.