[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] Putting a line a the top of every page in a report



Another way to handle this is using the "Next-Listing" command with a
"need=" and checking the page. Something along these lines....

   move #page-count to #curr_page
   next-listing no-advance skiplines=#detail_skip need=#detail_need
   if #page-count > #curr_page
      do print_section_heading
   end-if
   ...print detail stuff...

The print_section_heading procedure would also be called by an on-break
procedure, or similar condition, and would contain it's own "Next-Listing"
command like...

   next-listing no-advance skiplines=#section_skip need=#section_need
   ...print section heading stuff...
   next-listing skiplines=#detail_skip

where the #section_need variable has enough room for the section heading
plus 1 detail section plus any spacer lines between them.

HTH,
-----------------------------------------------------------------------
Donald Mellen  | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/
donm@ontko.com |  "In the beginning, there was nothing, which exploded"

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users