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

Re: report format



Randle,

If you don't mind a few blank lines at the end of each page,
move your next-listing into the begin-select.

You may also consider adding a before_vendor
procedure which actualy prints the &co.name and switch to
print=never.  This will give you a little more control over
what gets printed when.

Ray

> I have a report that  does the following bit of code:
>
>    print               &co.name    (,1) on-break print = change/top-page
> after = vendor_total
>                                            save = $name
>    print               &part       (,15)
>    print               &desc       (,26,38)
>    print                   &curbal     (,51)   edit {Number1}
>    print                   &avgcost    (,61)   edit {Number1}
>
>
> begin-procedure vendor_total
>    next-listing  need = 3
>    let #grandtotal = #grandtotal + #vendortotal
>    graphic                              (,1,{width}) horz-line
>    print $tfv        (+1,1)
>    print #vendortotal                     (,70) edit {Number1}
>    graphic                              (,1,{width}) horz-line
>    print ''                          (+1,)
>   end-procedure !vendor_total
>
> The problem that I am encountering is that if the on-break occurs at the
> end of a page, the totals are then printed on the next page.
> !s there a way to keep the totals with the 'detail lines' regardless of
> where the break occurs?
>
> TIA,
> Randle
>

----------------------------------------------------------------------
Ray Ontko       |  Ray Ontko & Co  |  "Time for a new signature line."
rayo@ontko.com  |  Richmond, In    |  See us at http://www.ontko.com/