Recent

Author Topic: New Page when change order list  (Read 1486 times)

eldonfsr

  • Sr. Member
  • ****
  • Posts: 287
New Page when change order list
« on: January 11, 2022, 01:55:36 am »
Hello is possible to start a new page when change the order of list..

datas

id    name     description    type    Unit
1     name1   part1            PL        each
2     name2   part2            PL       each
3     name3   part3            PL       each
4     name4   part4            PL       each
5     name5   part5            PS       each
6     name6   part6            PS       each
7     name7   part7            PS       each
8     name8   part8            PS       each
9     name9   part9            DW      each
10   name10 part10           DW      each

I need start a new page when change PL to PS order by Type

I hope some  body can help me thanks.




dseligo

  • Hero Member
  • *****
  • Posts: 581
Re: New Page when change order list
« Reply #1 on: January 11, 2022, 03:54:50 am »
You can do it in report's event OnBeginBand like that:

Code: Pascal  [Select][+][-]
  1. Band.ForceNewPage := True;

Of course, you need to check your values when to execute this.

 

TinyPortal © 2005-2018