How to calculate total no. pages in report

vyankuvyanku Member Posts: 791
When we execute report how can we calculate the total no. of pages of that report so that we can change the page no. like
<<total page no.>> of <<page no.>> or (ex.->10 of 2)

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Try this download: Page N of M (Navision)
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • vyankuvyanku Member Posts: 791
    Thats g8
    But will you please tell me what is the meaning of
    Customer.count/29;
    in the following code
    MESSAGE('%1',Customer.COUNT);
    Txt000 := ' of ';
    if CurrReport.PAGENO = 2 Then Begin
       flag +=1;
         if Flag=1 then Begin
            r := Customer.Count/29;//CountRec;
            q := Customer.Count Div 29;//CountRec;
    
            if r > 0 then
            q := q+1;
            message('%1',Txt000);
            Txt000 := Txt000 + Format(q);
            message('%1',Txt000);
    
         End;
    End;
    
Sign In or Register to comment.