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
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