How about just:-
    Sender.ForceNewPage := true;
 
I assume that is the intention - to force the band that is about to print onto a new page? 
 
 
Paul Ritchie
Radio Computing Services (NZ) Ltd.
-----Original Message-----
From: David Brennan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 26 September 2000 15:46
To: Multiple recipients of list delphi
Subject: Re: [DUG]: ForceNewPage - QuickReports3

Are you sure that the QRGroup components name is QRGroup3? I know the event is called that but that doesn't guarantee the component name is the same.
 
Does the TLogDet1 form contain the report which contains QRGroup3? or is the report on a different form? If so then that will be the cause of the problem - your code assumes QRGroup3 is part of a TLogDet1 form.
 
I presume this error is a compile time error?
 
David.
DB Solutions.
----- Original Message -----
Sent: Wednesday, September 27, 2000 10:34 AM
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

Reply via email to