list item start with number 1 in report

hi all,

im new user in axapta developer…my problem is how to get list item start with number 1 in report. each page have 30 list item but in first page the list item start with number 0. my code as below;

public void executeSection()
{
if( ItemNo > 30)
{
element.execute(1000);

element.newPage(); //again 30 lines printed, make the page break now

ItemNo = 1; //send reset the counter to count the next 30items
SubTotalPage =0;
}

super();
ItemNo ++;

}
so, how to solve this?

Maybe it is solved by initializing ItemNo to 1 and changing the test to > 31 instead of 30

Alternatively, reset the counter to 0 instead of 1 and move the itemNo ++ before the super()