Problem with FF4 and Intraweb
I have the following code: (aMasterDataSet is a TDataSet descendant)
When I comment the line
FReport.EngineOptions.UseGlobalDataSetList := false;
my report is working (the OnFirst / OnCheckEOF /.. are triggered). When UseGlobalDataSetlist is disabled (as is described in the help section) the OnFirst /.. are not triggered anymore.
Any idea for a workaround?
FfrxDBDataset := TfrxUserDataset.Create(self);
FfrxDBDataset.UserName := aMasterDataSet.ObjectClass.ClassName;
FfrxDBDataset.OnCheckEOF := CheckEOF;
FfrxDBDataset.OnFirst := frxDatasetFirst;
FfrxDBDataset.OnNext := frxDBDatasetNext;
FfrxDBDataset.OnGetValue := FindValue;
FReport.EngineOptions.SilentMode := true;
FReport.EngineOptions.EnableThreadSafe := true;
FReport.EngineOptions.DestroyForms := false;
FReport.EngineOptions.UseFileCache:= false;
FReport.EngineOptions.UseGlobalDataSetList := false;
FReport.DataSets.Clear;
FReport.EnabledDataSets.Clear;
FReport.DataSets.Add(FfrxDBDataset);
FReport.EngineOptions.ReportThread := self;
FReport.ShowProgress := false;
FReport.EnabledDataSets.Add(FfrxDBDataset);
When I comment the line
FReport.EngineOptions.UseGlobalDataSetList := false;
my report is working (the OnFirst / OnCheckEOF /.. are triggered). When UseGlobalDataSetlist is disabled (as is described in the help section) the OnFirst /.. are not triggered anymore.
Any idea for a workaround?
Comments