I need to dynamically break the page in a report based on transaction volume. The default printing height is 20 cm. When the transaction volume exceeds 20 cm, the report should break after the end of all transactions. Similarly, if the transaction volume is below 20 cm, the report should break after the end of the last transaction before reaching 20 cm.
How is this possible?