Spliting report to pages based on data

Stimulsoft Reports.JS discussion
Post Reply
rpotyka
Posts: 13
Joined: Mon Jan 07, 2019 8:26 am

Spliting report to pages based on data

Post by rpotyka »

Hi,

I want to create a report with data presented in for of list grouped by year, month and code of the transactions.
The report should be split to pages based on that. For each code, month or year the new page should be started. Is there a more or less convenient way to do so in code or the report designer?

Kind regards,
Radek
Lech Kulikowski
Posts: 7019
Joined: Tue Mar 20, 2018 5:34 am

Re: Spliting report to pages based on data

Post by Lech Kulikowski »

Hello,

You can set the NewPageBefore=true property for the master band or group band for the necessary level.

Also, you can use the following code in the BeforePrint event:
if (your condition) this.engine.newPage();

Thank you.
isabella1236
Posts: 1
Joined: Thu Jan 16, 2025 5:57 pm

Re: Spliting report to pages based on data

Post by isabella1236 »

hello,

how can i set the NewPageBefore = true in the designer?
i have a databand with the condition map_discharge_time
i want that each different map_discharge_time create a new page, but i wish i could put that on the designer
Lech Kulikowski
Posts: 7019
Joined: Tue Mar 20, 2018 5:34 am

Re: Spliting report to pages based on data

Post by Lech Kulikowski »

Hello,

Please check the screenshot.

Thank you.
Attachments
Screenshot 2025-01-17 101356.png
Screenshot 2025-01-17 101356.png (59.09 KiB) Viewed 673 times
Post Reply