Automatic page height scaling

Stimulsoft Reports.WEB discussion
Post Reply
287402225@qq.com
Posts: 4
Joined: Tue Dec 10, 2024 1:37 am

Automatic page height scaling

Post by 287402225@qq.com »

how can i get the page content height
287402225@qq.com
Posts: 4
Joined: Tue Dec 10, 2024 1:37 am

Re: Automatic page height scaling

Post by 287402225@qq.com »

For example, if the page size is set to A4 and the height of the data area on the previewed page cannot reach A4, how to make the height of the previewed page automatically change according to the height of the data area
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Automatic page height scaling

Post by Lech Kulikowski »

Hello,

Please check the sample report in the attachment. It will work only in the Compilation mode.

Thank you.
Attachments
Dynamical page height 2.mrt
(780.45 KiB) Downloaded 94 times
287402225@qq.com
Posts: 4
Joined: Tue Dec 10, 2024 1:37 am

Re: Automatic page height scaling

Post by 287402225@qq.com »

Lech Kulikowski wrote: Tue Dec 17, 2024 8:59 pm Hello,

Please check the sample report in the attachment. It will work only in the Compilation mode.

Thank you.
Hello, thank you very much for your reply. This doesn't seem to be the effect I wanted, it doesn't have pagination. Let me describe my requirements again, such as setting the page size to A4 size, which is 21 centimeters wide and 29.7 centimeters high. Then there is a data area on the page with a height of 35 centimeters, so it should be displayed on two pages. The height of the first page is 29.7 centimeters, and the height of the second page is only 5.3 centimeters. That means the last page will automatically shrink according to the height of the data area.
Best regards.Thanks.
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Automatic page height scaling

Post by Lech Kulikowski »

Hello,

Unfortunately, it is not possible in the report. You can create such report directly from the code:
https://www.stimulsoft.com/en/samples/r ... at-runtime

Thank you.
287402225@qq.com
Posts: 4
Joined: Tue Dec 10, 2024 1:37 am

Re: Automatic page height scaling

Post by 287402225@qq.com »

Thank you very much for your patient answer. I seem to understand now. I know the minimum height of the page, and it seems that this effect can also be achieved

Best Regards.Thanks.
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: Automatic page height scaling

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply