Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

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

Posted on by Microsoft Employee

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

*This post is locked for comments

  • Suggested answer
    PUNGGGI Profile Picture
    PUNGGGI on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    Look at this video it will help: youtu.be/DvreZIc7XjY

    Create Transfooter/Transheader in the Body of the Report in Microsoft Dynamics NAV 2013 R2

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    Hi Ramesh,

    Did you managed to have page numbering in the body? I haven't so far. Can you please explain me what you did?

    I've tried to do the text Mahesh responded on 10 Apr 2015 3:49 AM, but it didn't worked for me (also offset4 isn't set).

    Kind regards

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    Hi Prem

    you can use Globals!ReportName........

  • Premananth Profile Picture
    Premananth on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    hi

    this is prem . i am trying the same in Navision 2013 R2... how do you get the built-in-fields Globals!PageName ?? only  Globals!PageNumber is available in Navision 2013 R2

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    As you said in previous post's i design my header in page header,in previous i designed in table header.

    Thanks for helping.

    Ramesh

  • mmv Profile Picture
    mmv 11,465 on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    Could you share the solution and verify?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    Hi mmv,

    i resolve my problem.

    thanks for all 

    regards,

    ramesh.

  • mmv Profile Picture
    mmv 11,465 on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    Hi Ramesh,

    Is your report having Page Header and Footer or you are not planning to use them at all?

    Best Regards,

    MMV

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    Hi Sandeep,

    it always shows page 1-1 .

    Regards,

    Ramesh.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to Get a Page Number In body of The report in Navision 2013 r2

    pls verify...............

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans