On EVENT "NEEDMOREDATA" you can break the pages if using non-dataset datas like a "stringlist" or similars.
if ItemPerPage = 10 then BREAK THIS PAGE code... xxxx.NEWPAGE := TRUE
PascalScript: procedure MasterData1OnAfterPrint(Sender: TfrxComponent); begin if <Line> = 2 then Engine.NewPage; end; C++ Script: void MasterData1OnAfterPrint(TfrxComponent Sender) { if (<Line> == 2) Engine.NewPage(); }
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
https://github.com/FastReports/FastReport/blob/master/Demos/Reports/Handle%20Page%20Breaks.frx
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3