| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue Nov 07, 2006 9:12 am Post subject: FastReport - Align Detail Band to Bottom of Page |
|
|
I have 2 separate detail data bands. If the top detail band is empty,
the bottom detail band gets shifted up when printing. I want to keep
the bottom detail band in it's position, without shifting up or down.
How can I accomplish this?
I thought it would be possible to align the band to bottom of page, but
there is no option for this. By the way, I'm using fast dot matrix
printing (FastReport)..
Thanks for your help..! |
|
| Back to top |
|
 |
Alexander Tzyganenko Guest
|
Posted: Tue Nov 07, 2006 9:12 am Post subject: Re: FastReport - Align Detail Band to Bottom of Page |
|
|
It's easy to do with script. Put the empty detail header band on a page, and
write the following code in its OnBeforePrint event:
procedure Header1OnBeforePrint(Sender: TfrxComponent);
begin
Engine.CurY := 400; // measured in pixels
end; |
|
| Back to top |
|
 |
Guest
|
Posted: Fri Nov 10, 2006 9:12 am Post subject: Re: FastReport - Align Detail Band to Bottom of Page |
|
|
Alexander Tzyganenko wrote:
| Quote: | It's easy to do with script. Put the empty detail header band on a page, and
write the following code in its OnBeforePrint event:
procedure Header1OnBeforePrint(Sender: TfrxComponent);
begin
Engine.CurY := 400; // measured in pixels
end;
|
Detail "header" band?? I don't have that.. I just have 2 detail
bands... one on top and the other right beneath it.. the one on top
isn't always empty. It can actually have up to 3 lines. The problem is
that the second detail band below it gets shifted up or down according
to the number of lines of the top detail band... (but I want it to stay
in place because I'm using pre-printed forms)..
I have tried replacing the detail bands with subreports.. apparently
subreports stay in place so this works!! but I guess it's not the best
solution..
Maybe I can put the code you provided on each detail band.. would that
work? I have no idea what "Engine" is... What's the difference between
your code and this:
procedure DetailBand1OnBeforePrint();
begin
DetailBand1.Top := 400;
end;
By the way, I'm using FastReport 3.2..
Thanks for your reply!! |
|
| Back to top |
|
 |
|