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
How to refresh the dataset while editing StiDesigner
Please modify your code as follows:
If this method is not applicable n your case, please let me know.
Thank you.
Code: Select all
_Report.RegData("Data", dataSet)
_Report.LoadFromString(_reportLayout.RLALayout)
_Report.Dictionary.DataSources.Clear()
_Report.Dictionary.Relations.Clear()
_Report.Dictionary.Synchronize()
Thank you.