1

I have a report in ax 2009 which I want to create a new page for each vendor number.

I have used an executesSction - element.newpage() on the relevant section which works but always shows a blank page as the first page.

How do I get rid of the blank page?

Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50

2 Answers2

0

This answer applies to you as well.

You should not call newpage the first time. Use a control variable, declare it in ClassDeclation of the report.

Community
  • 1
  • 1
Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50
0

All you need to do is call newpage AFTER everything is executed for the page.

For example:

while (some condition)
{
    this.execute(1);
    this.execute(2);

    if(!lastpage)
        this.newpage();
}

Hope that helps!

Greg Bonzo
  • 116
  • 1
  • 5