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

Quick Report & GroupBands

266 views
Skip to first unread message

George Uzunov

unread,
Nov 6, 2003, 12:50:15 PM11/6/03
to
Hello,

I have the following problem: Very simple report, only one Group band +
detail band + footer band. For one group-expression value, there are 5-6
detail records. How can I prevent group not to be separated on different
pages? I want the whole group - GroupHeader, Details and Group footer to be
printed on one page. If it is impossible - I would like to move GroupHeader
on next page. I tried with setting LinkBand property in Group band to be
Footer Band, but this don't work. Any suggestions?

I am using D6, QR 3.0.9.

P.S. Sorry about my previous mail, it was only trial.

Joe Griffin

unread,
Nov 6, 2003, 3:36:43 PM11/6/03
to
George Uzunov wrote:
> I want the whole group - GroupHeader, Details and Group footer to be
> printed on one page. If it is impossible - I would like to move GroupHeader
> on next page.

I wanted this with one of my reports. What I did was "Prepare" the report and
count the number of detail rows, so that I could find the size of the "block"
(Header, Details plus Footer). Then in the before print of the header band,
throw a new page if it wouldn't fit in the space left on the page.

It was quite involved to do, but works well on a report which has 16
"blocks".

... Joe
Member of the UK Borland User Group

Dhaval Shah

unread,
Nov 6, 2003, 7:08:20 PM11/6/03
to
Hi George,
you can add the following line on "Afterprint" of the groupfooter band.
<yourquickreport>.Newpage;
This would ensure that the next groupheader starts printing from the
next page.
This is a neat solution as against having "ForceNewPage" in the
GroupHeader because if you set "ForeceNewPage" to true on the
groupheader, it'd skip 1 blank page in the beginning of the report. ;-)
Hope this helps

Dhaval Shah
Sr. Software Developer
Perth, Australia

George Uzunov

unread,
Nov 7, 2003, 5:26:18 AM11/7/03
to
Thank you Joe,

Of course, this is a solution, especially for small reports, with one group.
Actually, I tried to find a more easily and universal solution (something
like: PrintWholeGroup := True : -). I will work with your idea with more
complex report, actually, with ReportBuilder tool, where the count of Groups
is unknown, hope that the results would be suitable to my goal.


"Joe Griffin" <JoeGr...@nospam.cix.co.uk> wrote in message
news:VA.0000007...@nospam.cix.co.uk...

George Uzunov

unread,
Nov 7, 2003, 5:30:48 AM11/7/03
to
Thank you for your reply. As far as I understand your idea, I could do the
same with QRGroupHeaderBand.ForceNewPage := True, isn't it?

"Dhaval Shah" <MrDhav...@yahoo.com.au> wrote in message
news:3FAAE274...@yahoo.com.au...

Dhaval Shah

unread,
Nov 9, 2003, 7:16:27 PM11/9/03
to
Hi George,
*But* if you add
QRGroupHeaderBand.ForceNewPage := True
i'm *afraid* it'd "skip" 1 page when printing for the 1st group also !!
(*only if* you have some other bands printing before it, otherwise it'd
do the same)
cheers
0 new messages