Unless I am missing something as well - it looks like QRGroup3
is not the name of a QRGroup component on your form.
Do you in fact have a QRGroup component on your form called "QRGroup3"?
If you think you do - but the compiler is still giving you this
maybe you can post a fragment of the DFM file - or if it's a monster
email it and I'll have a look.
BTW - I'm not convinced this approach to using ForceNewPage - even if
you get the compiler to accept it eventually - is the right one.
I think you want to set "ForceNewPage" true all the time (at design
time) for this group - and then control whether or not the group
prints at all using the break condition expression. Or the PrintBand
flag in the BeforePrint event. but that's a different discussion...
ns
-----Original Message-----
From: Mark Howard <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Tuesday, 26 September 2000 10:36
Subject: [DUG]: ForceNewPage - QuickReports3
Hi
Last week I posted a question about how to programmatically force a new page
in QuickReports. Got a couple of replies but am still stumped and wonder if
anyone else has any ideas. I feel that it must just be something simple
that I am overlooking.
What I have just tried is as follows:
procedure TLogDet1.QRGroup3BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
begin
QRGroup3.ForceNewPage := True;
if SkipSub1 then
begin
PrintBand := False;
SkipSub1 := False;
end;
end;
and I get the message:
"Undeclared identifier 'QRGroup3'"
What have I missed?
Mark
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"