To my knonledge is not possible. You can't use Globals!PageNumber in body.
And you can't copy the value from the header to the body because body is processed before the header.
I tried with a VB Script function and as expected the value remains 0 in the body.
I'm sorry not to be able to help you :oops: .
Actually it is not possible todo this. There are techniques described on the www using functions, but they do not work.
For example:
Public Function PageNumber()
Dim str as String
str = me.Report.Globals!PageNumber.ToString()
Return str
End Function
Public Function TotalPages()
Dim str as String
str = me.Report.Globals!TotalPages.ToString()
Return str
End Function
Now add the following function calls to empty textboxes
=Code.PageNumber
=Code.TotalPages
And when you test it, it will always return 1 as the pagenumber. ](*,)
Debugging is twice as hard as writing code. Therefore if you write the code as cleverly as possible you are by definition not smart enough to debug it.
Answers
It works as expected... More or Less...
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
And you can't copy the value from the header to the body because body is processed before the header.
I tried with a VB Script function and as expected the value remains 0 in the body.
I'm sorry not to be able to help you :oops: .
It works as expected... More or Less...
http://dynamicsuser.net/blogs/waldo/archive/2008/10/01/microsoft-dynamics-nav-nav-2009-reports-pagenumbers-x-y.aspx
in the post you indicate the page number is shown in the Page Footer, while postsaurav want to print the page number in the body.
It works as expected... More or Less...
For example:
Now add the following function calls to empty textboxes
=Code.PageNumber
=Code.TotalPages
And when you test it, it will always return 1 as the pagenumber. ](*,)
There's another workaround you could apply, but it requires that you set the number of rows on every page to a fixed number.
http://www.codeproject.com/KB/reporting-services/RDL_Programming_Issues.aspx
But still no output for accessing Page no. in RTC Report
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
You already got answer for your question here.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
For Reply..........
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page