Hi Thanks for your quick response.
I have set the rendermode to "AjaxWithCache" and this has fixed my initial problem
The problem I have now is that when I change to query to my report and run it again, I get the cached report, not the new one
Below is my code I use to run my report. The _SQL variable does change!
// CREATE A NEW REPORT INSTANCE
StiReport rpt = new StiReport();
// LOAD REPORT
rpt.Load(Server.MapPath("~\\Reports\\rptTastingNotesByJudge.mrt"));
// POINT TO SERVER
String _connectionString = ConfigurationManager.ConnectionStrings["DecanterConnectionString"].ConnectionString;
rpt.Dictionary.Databases.Clear();
// ADD DB CONNECTION
rpt.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("DecanterDAWA", _connectionString));
// MODIFY REPORT QUERY
((Stimulsoft.Report.Dictionary.StiSqlSource)rpt.Dictionary.DataSources["vw_TastingNotes"]).SqlCommand = _SQL;
// SYNC DATA
rpt.Dictionary.Synchronize();
// BUILD NEW REPORT
rpt.Render();
// ADD CACHE
StiWebViewer1.RenderMode = StiRenderMode.AjaxWithCache;
// ADD REPORT TO VIWER
StiWebViewer1.Report = rpt;
// RENDER REPORT
StiWebViewer1.Report.Render(true);
Do I need to "clear" the cache? How?
Many Thanks
Andy