How to set page height dynamically

Stimulsoft Reports.JS discussion
Post Reply
robops
Posts: 20
Joined: Thu Dec 07, 2023 8:02 am

How to set page height dynamically

Post by robops »

Hello,
now I'm making a template,it has 5 dataBands,each dataBand I leave 1cm,so I set default pageHeight to 6(with top,margin 0.5).
At the same time, I need to add some variables to control some of the dataBand enabled or disabled,so that height of rendered content may less than 5.
For example,if I disabled 2 of them,the content height is 5 - 2 = 3,and pageHeight I need is 3 + 1 = 4,so I want to set pageHeight to 4.
I tried to add logic in Get Tag Event,however,it didn't work.The property enabled of every dataBand always be true.
Maybe there's some way to help me to realize.
Thank you.
Lech Kulikowski
Posts: 7383
Joined: Tue Mar 20, 2018 5:34 am

Re: How to set page height dynamically

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Post Reply