Change dataset and refresh in preview

Stimulsoft Reports.WPF discussion
Post Reply
Vidar Aasbakk
Posts: 1
Joined: Thu Nov 17, 2011 4:05 am
Location: Norway

Change dataset and refresh in preview

Post by Vidar Aasbakk »

Hello,

When changing the dataset when previewing the report in the report editor, I want the report to refresh with the new dataset automatic without pressing the "Refresh button". I have tried to use the following code but it dows not seem to work:

report.DataStore.Clear();
report.RegData(value);
report.Dictionary.Synchronize();
report.InvokeRefreshViewer();

I still have to press the "refresh button" to make the viewer update with the new dataset.

What am I doing wrong?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Change dataset and refresh in preview

Post by Alex K. »

Hello,

Please send us your report with test data for analysis.

Thank you.
Post Reply