Jump to content


Photo
- - - - -

page footer length and lines per page

reports

1 reply to this topic

#1 Chris Mackenzie

Chris Mackenzie

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 371 posts
  • Gender:Male
  • Location:Bristol, United Kingdom

Posted 12 February 2018 - 12:44 PM

p4 takes a new page on reaching the number of lines defined in the cycle definition.  If you want to use a footer you need to deduct the number of lines in the footer from the space available in the pagelen defintion.

 

i.e. use the default PAGELEN=56

 

Header is 4 lines

p4 will print the header and 52 lines of data then take a new page

 

without changing the pagelength (and why should you - isn't it a constant) add in a footer of 2 lines and p4 will still take a new page after 52 lines then it will print the footer - like this:

PageLen=56

H=4 lines

then 52 lines of data then a new page

then Footer with 2 lines then next header starts

 

Therefore the page len needs adjusted to be the space minus the footer length

PageLen=54

H=4 lines

then 50 lines of data

then Footer with 2 lines then a new page

 

Does anyone remember if it used to be smarter and add the footer rows into the count like it does with the header - like this:

 

PageLen=56

H=4 lines

then 50 lines of data

then Footer with 2 lines then a new page

 

 

Its a long time ago but I used to write a LOT of complicated financial reports and I am sure footers used to be taken into account but since at least V7 they haef not been - can anyone test in an older version?

 

 


The content and views expressed in this message are those
of the poster and do not represent those of any organisation.

#2 Rob Fantini

Rob Fantini

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 288 posts
  • Gender:Male
  • Location:Haverhill, United States

Posted 21 March 2018 - 09:25 PM

Hello,

 we are using Version : 4.6000  Revision : 2.1.3 .

 

 I could do testing if you still need that done, or give you ssh access to a test system if you wish.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users