AjaxWithCache WebViewer clear cache

Stimulsoft Reports.NET discussion
Post Reply
keris
Posts: 22
Joined: Fri Oct 04, 2013 10:14 am

AjaxWithCache WebViewer clear cache

Post by keris »

How can I clear the cache when using rendermode AjaxWithCache.
Assigning a new report to the Viewer seems to be not sufficent...
Thanx in advance
Peter
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: AjaxWithCache WebViewer clear cache

Post by Alex K. »

Hello,

Please try to use the following code:

Code: Select all

StiWebViewer1.ResetReport();
StiWebViewer1.Report = report;
Thank you.
keris
Posts: 22
Joined: Fri Oct 04, 2013 10:14 am

Re: AjaxWithCache WebViewer clear cache

Post by keris »

Thanx. It works.
Andrew
Posts: 4105
Joined: Fri Jun 09, 2006 3:58 am

Re: AjaxWithCache WebViewer clear cache

Post by Andrew »

Hello,

Thank you for letting us know about this!
niranjan Murthy
Posts: 2
Joined: Wed May 02, 2018 3:44 pm

Re: AjaxWithCache WebViewer clear cache

Post by niranjan Murthy »

Hi,

Here is the Solution:

StiWebViewer.ResetReport();
StiWebViewer.Report = report;

===================================

Complete Code is here:
StiReport report = new StiReport();
StiWebViewer3.ResetReport();
report.Reset();

report.Dictionary.DataStore.Clear();
report.Dictionary.Databases.Clear();
report.Dictionary.DataSources.Clear();
report.BusinessObjectsStore.Clear();

report.RegData();

report.Load(Server.MapPath(""));
report.Compile();
report.CompiledReport.DataSources["Sp_Order_Tax_Report"].Parameters["@Test"].ParameterValue = 1;

report.Dictionary.Synchronize();
report.InvokeRefreshViewer();
report.Render();
StiWebViewer.Report = report;
Lech Kulikowski
Posts: 6265
Joined: Tue Mar 20, 2018 5:34 am

Re: AjaxWithCache WebViewer clear cache

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply