<p>Hi!

I'm new in Birt and I've got an headache with version 3.7.1. The problem is that I need to print double sided a report
and when the grouping changes, the report must start in an odd page. I've found the solution in other post of this
forum, creating a footer row in the table group and putting the following code in the onCreate event:
if (pageNumber%2 == 0){
this.getStyle().pageBreakBefore = "Always";
}
else
{
this.getStyle().pageBreakBefore = "Avoid";
}
The problem is that when I run the report in the viewer it works perfectly but when I export the report to PDF the solution does not work. :wacko:
It seems that the page number variable does not work properly in PDF.
Could you please help me? I cannot attach the report because it is confidential
Many thanks</p>