BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FastReport - Align Detail Band to Bottom of Page

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Nov 07, 2006 9:12 am    Post subject: FastReport - Align Detail Band to Bottom of Page Reply with quote



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





PostPosted: Tue Nov 07, 2006 9:12 am    Post subject: Re: FastReport - Align Detail Band to Bottom of Page Reply with 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;
Back to top
Guest






PostPosted: Fri Nov 10, 2006 9:12 am    Post subject: Re: FastReport - Align Detail Band to Bottom of Page Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Reporting-Charting All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.