Page break problems

I am attempting to add a page break after each vendor in my report.

My report data sources are

InventTrans > PurchTable > PurchLine

InventDim

I want to throw a new page whenever there is a change in the InventTrans.CustVendAC.

I have added the code below to the Body section of my report but it does not work.

Can anyone help me please ?

public void executeSection()
{
If (InventTrans.CustVendAC != InventTrans.CustVendAC)
element.newPage();
super();
}

Hi,

You should use a fetch() method to manage your page break or use a temp value to store the Vendor in executeSection() method and compare it to the next vendor to trigger your page break on the next loop

Regards,

Thomas

Thanks Thomas

Are you able to give me an example so I can adapt ?

All help (very much) appreciated