Report Builder Thread Safe
I work with Asta Tools and when my application server is threaded and I
attempt to create two instance of the same report, it gives me this error :
Object already exists in the collection. Is Report Builder threading safe?
Is it possible to make it safe? Do you have an idea?
--
Rene Belle-Isle
Software Developer
Groupe AGI inc.
418.658.4003 ext. 239
888.849.8059 ext. 239
www.abaksoftware.com
rbelle@abaksoftware.com
--
Rene Belle-Isle
Programmeur-Analyste
Groupe AGI inc.
418.658.4003 ext. 239
888.849.8059 ext. 239
www.abaksoftware.com
rbelle@abaksoftware.com
This discussion has been closed.
Comments
I useDelphi 5 and RB 6.2. When I attempt to create a second instance I
receive this error message : "This object already exists in the collection".
I don't use RichEdit and I don't use TeeChart.
Here an example :
procedure TdmReports.aboReportsActions0Action(Sender: TObject;
ADataSet: TDataSet; ClientParams: TAstaParamList);
begin
1 : LaunchReport(ClientParams);
end;
end;
procedure LaunchReport(prmClientParams: TAstaParamList);
var
fReport : TfReport;
begin
fReport := TfReport.Create(nil);
//Application.CreateForm(TfReport, fReport);
with fReport do
begin
with ppReport do
begin
ArchiveFileName := GenerateUniqueReportName;
Print; // Generate the report
prmClientParams.ParamByName('prmReportNameReady').ParamType :=
ptOutput;
prmClientParams.ParamByName('prmReportNameReady').AsString :=
ArchiveFileName;
end;
end;
fReport.Free;
fReport := Nil;
end;
An other thing : If I want to use teechart in my report I can't use thread.
Is it right?
--
Rene Belle-Isle
Software Developer
Groupe AGI inc.
418.658.4003 ext. 239
888.849.8059 ext. 239
www.abaksoftware.com
rbelle@abaksoftware.com