Hello,
Does anyone knows a define a conditional page break inside a report ?
We need to print a page as a "big label" and if i select multiple records, each
record should fill exactly one page. And if i print only one record, i don't
want an empty blank page after the printed page.
Same problem
El 02/03/18 a les 10:47, Maxime Richez ha escrit:
> Hello,
>
> Does anyone knows a define a conditional page break inside a report ?
> We need to print a page as a "big label" and if i select multiple records,
> each record should fill exactly one page. And if i print only one record, i
> don't
> We have some custom modules that need the same behaviour and we
> implemented it by surrounding the page break with the following if
> condition:
>
> if test="records and record != records[-1]"
> /if
>
> This will add a page break for all pages except the last one.
>
> Hope it helps.