[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: How does SQR page-break when writing many detail lines?
- Subject: Re: How does SQR page-break when writing many detail lines?
- From: Ed Crotty <73747.1247@COMPUSERVE.COM>
- Date: Wed, 21 Aug 1996 19:17:40 EDT
Kent,
The easiest way that I have found to repeat heading on an overflow page is to
check if it started a new page using #current-line. You need to look for the
first line of the body of the report, which will be one more than the heading.
begin-select
col1
if #current-line = 10
do print_detail_header
end-if
print &col1 (1,1)
next-listing
end-select
You can also repeat some of your master info ( Account : 12345 continued) if you
like. It might be more elegant to use a variable for your heading size and
make
the first_body_line be one more.
move 9 to #heading lines
let #first_body_line = #heading_lines +1
if #current-line = #first_body_line
do print_detail_header
end-if
Ed Crotty
BEGIN-HEADING #heading_line