How to Get a Page Number In body of The report in Navision 2013 r2

how to get page number value in body.
I tried for Global.pageNumber, but it works only in footer and header. and also i wrote custom code but it always shows page 1-1 .
and also i tried for ReportItems!Field.Value but it works only for body to footer.

My custom code is

Public Function PageNumber() as String
Return Me.Report.Globals!PageNumber.ToString()
End Function

Public Function TotalPages() as String
Dim str as String
str = Me.Report.Globals!TotalPages.ToString()
Return str
End Function

Thanks in advance

Ramesh