Page 1 of 1

How to refresh the dataset while editing StiDesigner

Posted: Sun May 04, 2008 10:40 pm
by ngaheer
Hi,

i create the report using your designer and then remove some fields from dataset
and then again set the dataset to stireport like following:-

_Report.RegData("Data", dataSet)
_Report.Dictionary.Synchronize()

and then load existing layout using following code:

_Report.LoadFromString(_reportLayout.RLALayout)

but the dataset is not become refresh. Here Refresh means in _reportLayout.RLALayout has 5 fields in their xml but now in actual dataset has a 3 fields but the designer shows the 5 fields but i want to show the exact dataset that is 3 fields.

Thanks in Advance,

How to refresh the dataset while editing StiDesigner

Posted: Sun May 04, 2008 11:58 pm
by Edward
Please modify your code as follows:

Code: Select all

_Report.RegData("Data", dataSet)
_Report.LoadFromString(_reportLayout.RLALayout)
_Report.Dictionary.DataSources.Clear()
_Report.Dictionary.Relations.Clear()
_Report.Dictionary.Synchronize()
If this method is not applicable n your case, please let me know.

Thank you.