FR2 to FR4 Conversion, Problem with UserDataSet
Hi,
I converted one of my older programs from FastReport 2.5 to FastReport 4, using frx2xto30 to convert the reporttemplate and replacing the FR2-Components by FR4-Components. (IDE = Delphi 2007). There is only one report in the program. This report uses a UserDataSet. The old Version works just fine. Recompiling works without Errors.
After converting to FR4 suddenly there is no data shown in the report. Preview says "page 0 of 0". But there is defnitly Data in the Dataset. Setting a breakpoint at the OnGetValue-procedure shows, that it never is jumped to, it is never run. I can't explain why. The dataset-property of the report and the reportpage is set to "not assigned". The dataset-property of the Masterdataband is set to the UserDataSet.
I rebuild the report in a simpler Form (without Groupheader, Groupfooter, only Masterdata) in the same project, same problem.
I build a simple UserDataSet-Report in a new Project. It works just fine. As far as I see, all propertys set equal.
Somebody have an idea? I have none left.
I converted one of my older programs from FastReport 2.5 to FastReport 4, using frx2xto30 to convert the reporttemplate and replacing the FR2-Components by FR4-Components. (IDE = Delphi 2007). There is only one report in the program. This report uses a UserDataSet. The old Version works just fine. Recompiling works without Errors.
After converting to FR4 suddenly there is no data shown in the report. Preview says "page 0 of 0". But there is defnitly Data in the Dataset. Setting a breakpoint at the OnGetValue-procedure shows, that it never is jumped to, it is never run. I can't explain why. The dataset-property of the report and the reportpage is set to "not assigned". The dataset-property of the Masterdataband is set to the UserDataSet.
I rebuild the report in a simpler Form (without Groupheader, Groupfooter, only Masterdata) in the same project, same problem.
I build a simple UserDataSet-Report in a new Project. It works just fine. As far as I see, all propertys set equal.
Somebody have an idea? I have none left.
Comments
ie 4.7.103 basic,standard,pro,enterprise.
1 did you write code for the events of the tfrxuserdataset.
2 in design mode check the menu report data to see if the dataset exists and is it checked.
3 does the tfrxuserdataset have a username.
>ie 4.7.103 basic,standard,pro,enterprise.
FastRepot 4.7.5 Standard Edition.
> 1 did you write code for the events of the tfrxuserdataset.
Of course, it wouldn't have run in the older Version otherwise, would it. All events are covered by code, but this code isn't executed. Breakpoints are not reached.
> 2 in design mode check the menu report data to see if the dataset exists and is it checked.
Userdataset exitsts and is checked.
> 3 does the tfrxuserdataset have a username.
Yes, the same as the Componentname, frxUserDataSet1
the old 2x version used the fruserdataset
not the frxuserdataset.
O, I'm such an idiot! I got it.
There's a saying in German: Sometimes you can't see the woods, because of all the trees.
I copied the programfiles to a new directory, before changing the code. But in the Ini-File there was a fixed path for the report-template-directory. So all my changes on the template didn't take any effect, because the program loaded always the old, unchanged template out of the old directory.
I'm sorry