Force newpage on field change w/o using groups
Hi,
I have a table with lots of student data, where student records from a class can cover several pages. Hence I display the class name and details on the page header above the list of class members so I get this information on top of each page. If I used a Group then the classname would only be at the class' first page.
On my MasterData band's OnBeforePrint event I want to check if the field ClassID has changed value. In that case I want to force a Engine.NewPage. How do I code this test (and also avoiding having a blank first page of the report)..
Thanks for help on this.
regards Tor
I have a table with lots of student data, where student records from a class can cover several pages. Hence I display the class name and details on the page header above the list of class members so I get this information on top of each page. If I used a Group then the classname would only be at the class' first page.
On my MasterData band's OnBeforePrint event I want to check if the field ClassID has changed value. In that case I want to force a Engine.NewPage. How do I code this test (and also avoiding having a blank first page of the report)..
Thanks for help on this.
regards Tor
Comments
put them in the group header
set the group header to reprint on newpage, this will give you a header on each page with the correct info
and set its start newpage prop to true. i am assuming the group condition is classid.
Now it works great!