(I'm using Builder 3, and QuickReport 2.0)
Thanks...
I think that you need to assign the Property LinkBand in your detail Band to
your GroupHeader Band
HTH
Antonio
>I think that you need to assign the Property LinkBand in your detail Band
to
>your GroupHeader Band
I was wondering if you can get together GroupHeader and Detail bands. I
think you can do this only with GroupHeader and SubDetail bands. But if you
use them seting LinkBand doesn't solve this.
Marian Weisser
wei...@tribut.ch
I've tried to Link the GroupHeader to the DetailBand of a Report
(programatically, because there's no property "LinkBand" available in the
"object inspector") but it doesn't appear on the second page of my report.
Is it my version of QuickReport (2.0, available in Builder 3), that cannot
handle this (It althought compile the code !!)
thanks in advance...
Richard
Marian Weisser <wei...@tribut.ch> a écrit dans le message :
7umgcu$nr...@forums.borland.com...
Maybe i was missing something because i'm using BCB4 at the moment, but i
shure
i've done this in the past using BCB3 and QR2.
Please give me some time to dig my old code and try to find the correct
solution
Regards
Antonio
I think it was misunderstanding. Of course you can link GroupHeader and
Detail band bud only SubDetail band has property HeaderBand where you
connect it to GroupHeader and also you can link thems.
The whole problem is that I want to have 2 or more tables designed on
one report. As I read kb.txt from QuSoft. I try to do this by using
GroupHeader and SubDetail bands but one problem still remaining. GroupHeader
band is not repeated on next page. I posted it to ReportCharting group but
no ansver. Another solution I try to use is design my own bands and control
whitch is printed in OnNeedData event but when new page start in the first
occurance of this event report still gave me that it is previous page. Maybe
in next version of QuickReport. :-)
BTW I am using BCB4
Marian Weisser
wei...@tribut.ch
The code is written for a delphi compilator, but you can undersand it
easily.
Here are the main lines of this method :
- Add a page Header to your report (or use the one that is already
on it)
- Add a ChildBand that duplicate exacly the Header Group you want to
print on each page of your report.
- Attach the Child Band to your Page Header in the property "Parent
Band"
- Create one (or more) public variable that will store the current
value of the field you've chosen to be the "group separator", eg : CUSTOMER
- In your DetailBand event BeforePrint add the following line :
MyVar = Table->FieldByName("CUSTOMER")->AsString;
- Then print the Child Band only if you're not on the first page and
if your value is the same than the one you've printed just before. In the
BeforePrint Event :
PrintBand = (MyQR->PageNumber > 1) && (MyVar ==
Table->FieldByName("CUSTOMER")->AsString);
(if PrintBand param becomes "true" the Band will be printed)
That works...
Richard FURIC <ric...@synhelios.com> a écrit dans le message :
7uk84a$76...@forums.borland.com...