How to change page orientaion from potrait to landscape alternatively for same report using script(after render)?



  • Hi sir ,
    I have a report with multiple pages, i would like to change the orientation of the same report from Portrait to Landscape alternatively using script (after render, pdf utils ).could you please reply with an example?. I saw one example using mixed page orientation but it is done using two templates. but in my case i have only one template which contain multiple page and i need to change the orientation from portrait to landscape programatically using script (after render).But i couldn't find any solutions. So please reply with an example?

    0_1632840112006_upload-64e3403a-1176-47e6-9b63-0e41776bf006



  • Maybe this helps?
    https://playground.jsreport.net/w/anon/oLlF1Bd0

    However, you still need to render a template twice, to be able to have mixed orientation.



  • Thank you so much for your valuable information.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.