"New page after" by code


There is a method for starting of the new page in the EngineV2:


You can call it from any event inside the report.

Thank you.

Thanks Edward
I'm using this code in GroupFooter "After Print" event 

Code: Select all

If var_NewPageGrp=1 Then Engine.NewPage()

It works fine but it gives me +1 page blank at the end.This is normal, I need a more complex validaton for last group of data but how I'll do that.
Thanks a lot !