How to refresh data after dataset record change?

edited June 2016 in FastReport VCL 5
I found an issue:

I have a simple report with no masterdata (only one memo on page).
memo.Text := [Dataset."ID"];

Now I do (in Delphi):
myDataset.RecNo = 1; (ID = 1)
frxReport1.LoadFromFile(file.fr3);
frxReport1.PrepareReport();
           
myDataset.RecNo = 5; (ID = 5)
frxReport1.LoadFromFile(file.fr3);
frxReport1.PrepareReport(false);


And now, I get 2 pages with Memo.Text = '1';

I don't know why the ID is the same.
Do I need to refresh a frxDataset after myDataset record change?

Comments

  • gpigpi
    edited 11:35AM
    Try to set TfrxDBDataset.RangeBegin to rbCurrent, TfrxDBDataset.RangeEnd to reCurrent

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.