Landscape Orientation in JS Report

Stimulsoft Reports.JS discussion
Post Reply
ArnauINFR
Posts: 21
Joined: Fri Nov 05, 2021 10:01 am

Landscape Orientation in JS Report

Post 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!
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: Landscape Orientation in JS Report

Post 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.
ArnauINFR
Posts: 21
Joined: Fri Nov 05, 2021 10:01 am

Re: Landscape Orientation in JS Report

Post by ArnauINFR »

Hi Max thank you for the reply it works perfectly!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Landscape Orientation in JS Report

Post by HighAley »

Hello.

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

Thank you.
Post Reply