Pageno on report only shown on first page

SinaSina Member Posts: 33
Hey. I'm new in the world of NAV and I've got a problem.

I want the pageno on a report shown on all pages after page one. So I wrote in the OnPreSection:
CurrReport.SHOWOUTPUT(CurrReport.PAGENO <> 1 );
But it doesn't work. I have no idea, what could be wrong ](*,) In all other reports where I wrote this code it works perfectly. Does anybody have an idea of what might be wrong with the code, or where a mistake could be??

Please help me...

Sina
Sina

Comments

  • KYDutchieKYDutchie Member Posts: 345
    Hi,

    did you check the properties of the section you want to print the page number in? You must set it to be printed on every page.

    Maybe this helps,

    regards,

    Willy
    Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
  • SinaSina Member Posts: 33
    Even when I set PrintOnEveryPage to Yes it doesn't work...
    In the other reports I set it to no and it works...

    Sina
    Sina
  • ara3nara3n Member Posts: 9,256
    Do you have two or more header section?

    Can you set the property to for those.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • SinaSina Member Posts: 33
    I have 7 Header sections in my report. But even when I set all PrintOn EveryPage properties to Yes it doesn't work... #-o

    Sina
    Sina
  • SinaSina Member Posts: 33
    Maybe I should add that when I set CurrReport.SHOWOUTPUT to TRUE the pageno is only shown at the first page and not on the following pages... :?:

    Sina
    Sina
  • Sandeep_PrajapatiSandeep_Prajapati Member Posts: 151
    Can you post your report object ...??
    Sandeep Prajapati
    Technical Consultant, MS Dynamics NAV
  • KYDutchieKYDutchie Member Posts: 345
    Can you check the property "KeepWithNext" of the header where your page number is printed?

    If it is set to "Yes", set it to "No". That could be the cause.

    Hope it helps,

    Willy
    Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
  • SinaSina Member Posts: 33
    No, that was not the problem...
    It was easier and faster to create a new report than searching hours for a solution :wink: Now it works...
    Thank you for your suggestions

    Sina
    Sina
Sign In or Register to comment.