Groups > dBase > dBase reports > Re: Before rendering a group footer




Before rendering a group footer

Before rendering a group footer
Tue, 19 Jun 2007 12:18:10 -040
My report's streamsource has a group with a 1.3 inch footerband. Before
rendering the footerband, I'd like to check if there is enough space for the
rendering, and if there is not enough, I'd like the footer to print on the next
page.

How do I do this?

Thanks.

Post Reply
Re: Before rendering a group footer
Tue, 26 Jun 2007 05:36:35 -070
G Picache wrote:
> My report's streamsource has a group with a 1.3 inch footerband. Before
rendering the footerband, I'd like to check if there is enough space for the
rendering, and if there is not enough, I'd like the footer to print on the next
page.

You need to look at various properties of the streamFrame and such. This 
is detailed in my book (on Reports), and in various other places. Start 
at teh OLH. There is a property somewhere that I cannot find right now 
(just did some looking) that tells you were you are when rendering ... 
how far down the page the last item was rendered or something. You can 
use this in a calculation ...

Ken

-- 
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/dbase/dBASEReportsBook.htm
http://www.goldenstag.net/GSP
Post Reply
Re: Before rendering a group footer
Fri, 29 Jun 2007 05:01:53 -040
Hello Ken,
Would that be the renderOffset property of the Band class? It returns the
distance from the top of the streamframe, and if the difference between the
streamframe height and that distance is less than a tolerance, then I can begin
a new frame.

Sounds like that could work...

Gabrie

Ken Mayer [dBVIPS] Wrote:

> You need to look at various properties of the streamFrame and such. This 
> is detailed in my book (on Reports), and in various other places. Start 
> at teh OLH. There is a property somewhere that I cannot find right now 
> (just did some looking) that tells you were you are when rendering ... 
> how far down the page the last item was rendered or something. You can 
> use this in a calculation ...
> 
> Ken
> 
> -- 
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
> 
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/dbase/dBASEBook.htm
> http://www.goldenstag.net/dbase/dBASEReportsBook.htm
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase
Post Reply
Re: Before rendering a group footer
Mon, 02 Jul 2007 05:34:20 -070
G Picache wrote:
> Hello Ken,
> Would that be the renderOffset property of the Band class? It returns the
distance from the top of the streamframe, and if the difference between the
streamframe height and that distance is less than a tolerance, then I can begin
a new frame.
> 
> Sounds like that could work...

Yes, that was it.

Ken

-- 
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/dbase/dBASEReportsBook.htm
http://www.goldenstag.net/GSP
Post Reply
about | contact