Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Quick Report GroupHeader

970 views
Skip to first unread message

Richard FURIC

unread,
Oct 20, 1999, 3:00:00 AM10/20/99
to
Does anybody know how to print the contents of a QuickReport HeaderGroup on
the pages after the first page of a report ??

(I'm using Builder 3, and QuickReport 2.0)

Thanks...

António Félix

unread,
Oct 20, 1999, 3:00:00 AM10/20/99
to
Hi Richard

I think that you need to assign the Property LinkBand in your detail Band to
your GroupHeader Band

HTH
Antonio


Marian Weisser

unread,
Oct 21, 1999, 3:00:00 AM10/21/99
to
Hi 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

Richard FURIC

unread,
Oct 21, 1999, 3:00:00 AM10/21/99
to

// QRBandDetail->LinkBand = QRGroup1;

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...

António Félix

unread,
Oct 21, 1999, 3:00:00 AM10/21/99
to
Hi Richard and Marian

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


Marian Weisser

unread,
Oct 21, 1999, 3:00:00 AM10/21/99
to
Hi Richard

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


Richard FURIC

unread,
Oct 22, 1999, 3:00:00 AM10/22/99
to
Ok, I've just found a solution for this problem on the "QuSoft" web
site. See the Download area and reach for a file named "Repeats.zip". It is
an example of a simulation of the property available in the QR3 that
duplicates the header contents on next pages of a report.

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...

0 new messages