[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Keeping WRAP-ed columns on the same page
Todd,
It sounds like you have two things going on.
1) If you use NEXT-LISTING, it's not the NEED=2 that's causing
the double-spacing, it's the (+1). When you use NEXT-LISTING,
the line AFTER the last line printed to becomes "LINE 1".
If you use NEXT-LISTING, simply use (1,{HEAD_COL1}) for your
first print position in the detail.
2) How many lines do you have reserved for your heading in
BEGIN-HEADING? For example, you might have BEGIN-HEADING 3,
but perhaps print on lines 2, 3 and 4 of the heading (the
last of these is actually in the body of your report.
Is this making any sense?
Ray
> Hi there,
> I've come across this problem before, but can't remember how I got
> around it. I've got a tabular report with about 13 columns on it. One of
> those columns needs to use the WRAP feature in order to display the complete
> text. Here's the code:
>
> !print out the detail records
> print $prod_code (+1,{HEAD_COL1})
> print $plane_code (,{HEAD_COL3})
> print &planedesc (,{HEAD_COL4})
> print $dim_code (,{HEAD_COL5})
> print $size_code (,{HEAD_COL6}) underline
> print $processed_flag (,{DTL_COL7}) underline
> print $pkms_onhand (,{HEAD_COL8})
> print $pkms_qual_aud (,{HEAD_COL9})
> print $pkms_not_avail (,{HEAD_COL10})
> print $omnia_onhand (,{HEAD_COL11})
> print $omnia_qual_aud (,{HEAD_COL12})
> print $omnia_not_avail (,{HEAD_COL13})
> print $diff_onhand (,{HEAD_COL14})
> print $diff_qual_aud (,{HEAD_COL15})
> print $diff_not_avail (,{HEAD_COL16})
> print &proddesc (,{HEAD_COL2}) WRAP 19 2
>
> The problem is that sometimes if the last detail line on a page has a
> &proddesc that wraps, the second line prints up in the header of the next
> page. I've tried using next-listing need=2, and that doesn't work for me.
> Firstly, because then it double-spaces ALL the detail lines regardless of
> whether that field wraps to 2. Secondly, even if it does wrap it's still
> printing up in the header of the next page. Any suggestions?
> Thanks,
> Todd
>
----------------------------------------------------------------------
Ray Ontko | Ray Ontko & Co | "RO&C: data movers and shakers."
rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/