Mike
Not sure if I've understood properly what it is that you want to do. But I
have done something like the following:
for i = 1 to ReportCount do
begin
//CreateDataset[i]
Application.CreateForm(TMyStandardReport, MyStandardReport);
if OutMode = 'Screen' then MyStandardReport.Report.Preview
else MyStandardReport.Report.Print;
MyStandardReport.Free;
end;
If the report is the same format and only the Dataset is different, I think
this might be the way to do it.
Mark
CreateDataset[i]
----- Original Message -----
From: "Michael Pelly" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 5:15 PM
Subject: [DUG]: QR: multiple reports
> From: "Mike" <[EMAIL PROTECTED]>
> Subject: Multiple Reports
> Date: Tuesday, June 19, 2001 2:42 PM
>
> Hi All,
> Re: Quick Reports.
> I have a program in which i need to create a variable number of the same
> report (using a different dataset each time, obviously).
> So i need to create
> report1 := create.TQR...
> reprort2 := create.TQR etc
> I will use a for loop along the lines:
> for i := 1 to ReportCount do
> reporti := create.TQR....
>
> what I don't know how to do is allocating the report name dynamically,
like
> this.
> Can anyone help me out.
> TIA.
> MP
>
> --------------------------------------------------------------------------
-
> 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"
>
---------------------------------------------------------------------------
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"