How let user choice to print report in landscape?

What is the way to let user choice from request form if print report in portrait or landscape? Orientation property of report is not available from C/AL Code of report?

Hi! Why do you need to select portrait/landscape in the RequestForm? You could select the layout in the standard-printer-properties (Windows 95/98/…)?! If you really NEED to select before printing/viewing, then there could be such a “workaround”: Copy your Report, and define one with orientation “Landscape” and the other with “Portrait”. Then create a “Dummy-Report”, based on the same Dataitems, with an Option-variable for selecting the orientation in the RequestForm. Now the “Dummy” could call your “real” reports, depending on the selection (transfering any other filters or additional variables from the “Dummy” to the “Real”-Report shouldn’t be a problem)! Regards, Jörg Joerg A. Stryk Apollo-Optik, IT/ERP Edited by - stryk on 2001 Aug 24 14:03:20

You’re are right it’s not possible to dynamically control the orientation property from C/AL code however here’s a work around which do not require any customization : 1/ Run you report 2/ From the top menu, Click on File\Page Setup, Select your orientation (portrait or landscapte) 3/ If required apply filter on your report 4/ Click on Print or Preview There you go :wink:

quote:


Originally posted by andr: What is the way to let user choice from request form if print report in portrait or landscape? Orientation property of report is not available from C/AL Code of report?


tarek_demiati@ureach.com