Page 1 of 1

Landscape Orientation in JS Report

Posted: Fri Nov 05, 2021 10:15 am
by ArnauINFR
Hi, I'm new here and I need some help.

I'm using the 08. Print table Sample of Working with report viewer for JavaScript.

All works fine, but I have a lot of columns and I would like to change the orientation of the page from Portrait to Landscape.
I searched some solutions, but I have no idea where I can change it.

If you could give me a hand, I'll appreciate.
Thanks!

Re: Landscape Orientation in JS Report

Posted: Mon Nov 08, 2021 8:51 am
by Max Shamanov
Hello,

please use the following code to change page orientation:

Code: Select all

report.pages.list[0].orientation = Stimulsoft.Report.Components.StiPageOrientation.Landscape;
Thank you.

Re: Landscape Orientation in JS Report

Posted: Wed Nov 10, 2021 9:10 am
by ArnauINFR
Hi Max thank you for the reply it works perfectly!

Re: Landscape Orientation in JS Report

Posted: Wed Nov 10, 2021 12:10 pm
by HighAley
Hello.

We are always glad to help you.
Let us know if you need any additional help.

Thank you.