Problems using FastReports with Threads
Hi!
I have some Problems using FastReports with Threads. Each ThreadObject has its own FastReport Components. And each of them his own IB_Connection and IB_Transaction.
The Settings for my FastReport are:
EngineOptions.UseGlobalDataSetList := False;
EngineOptions.EnableThreadSafe := True;
EngineOptions.DestroyForms := False;
EngineOptions.ReportThread := Thread;
The used reports are using the IB_Connection and IB_transction from the ThreadObject self.
If only one Thread is running and initialized all works fine. I create in my Transaction some data rows and print print it. I don't have problems.
BUT, if I create a further ThreadObject of the same it doesn't work anymore.
In this case the data rows will be generated but the FastReport Engine dont get them.
The result of TfrxEngine.CanShow is False. I think this is why the page isn't added.
Is there a problem with the SettingUseGlobalDataSetList? Or do you have any idea whats wrong?
thanks
I have some Problems using FastReports with Threads. Each ThreadObject has its own FastReport Components. And each of them his own IB_Connection and IB_Transaction.
The Settings for my FastReport are:
EngineOptions.UseGlobalDataSetList := False;
EngineOptions.EnableThreadSafe := True;
EngineOptions.DestroyForms := False;
EngineOptions.ReportThread := Thread;
The used reports are using the IB_Connection and IB_transction from the ThreadObject self.
If only one Thread is running and initialized all works fine. I create in my Transaction some data rows and print print it. I don't have problems.
BUT, if I create a further ThreadObject of the same it doesn't work anymore.
In this case the data rows will be generated but the FastReport Engine dont get them.
The result of TfrxEngine.CanShow is False. I think this is why the page isn't added.
Is there a problem with the SettingUseGlobalDataSetList? Or do you have any idea whats wrong?
thanks