FR2 to FR4 Conversion, Problem with UserDataSet

edited 2:32PM in FastReport 4.0
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.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:32PM
    It would help if you tell us which version of fr4 you are using.
    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.
  • edited 2:32PM
    >It would help if you tell us which version of fr4 you are using.
    >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
  • gordkgordk St.Catherines On. Canada.
    edited 2:32PM
    "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."
    the old 2x version used the fruserdataset
    not the frxuserdataset.
  • edited 2:32PM

    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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.