Page 1 of 1

Automatic page height scaling

Posted: Tue Dec 17, 2024 7:14 am
by 287402225@qq.com
how can i get the page content height

Re: Automatic page height scaling

Posted: Tue Dec 17, 2024 8:30 am
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

Re: Automatic page height scaling

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

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

Thank you.

Re: Automatic page height scaling

Posted: Thu Dec 19, 2024 1:37 am
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.

Re: Automatic page height scaling

Posted: Thu Dec 19, 2024 7:23 am
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.

Re: Automatic page height scaling

Posted: Fri Dec 20, 2024 7:06 am
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.

Re: Automatic page height scaling

Posted: Fri Dec 20, 2024 9:58 am
by Lech Kulikowski
Hello,

You are welcome.