Strange user data set problem..

Hi,

My application creates objects with attached TfrxUserDataSet objects, their purpose is to gather information at run-time ready for the user to view a report at the end of a run. So these TfrxUserDataSet objects always exist when my application is running.

Now I have a report designer which opens the same report, and has a preview panel. This report on the preview panel has its DataSet field cleared and new (dummy) objects (with attached TfrxUserDataSet objects) added - this dummy objects create fake data for the preview.

No matter what I try the preview panel always talks to the TfrxUserDataSet attached to my original objects, it totally ignores the dummy UserDataSet's with their fake data.

I've tried clearing the preview's frxReport.DataSet list, create a new TfrxDataSet, etc.

However even with the preview frxReport.DataSet list with no entries (TList.count = 0), somehow my OnFirst, OnCheckEOF of the original objects are fired.

Does the frxReport ignore the DataSet list, or simply use names to look-up the correct TfrxUserDataSet?

Anyone know how I can get around this problem?

James

Comments

  • gpigpi
    edited 9:29PM
    Attach small demo project with problem

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.