Caching keeps a rendered report on the server between requests, so paging and exporting do not rebuild it every time. A StiCacheHelper controls where it is stored.

Implement a cache helper. Override how a report is saved, loaded and removed — here to files:
public class StiFileCacheHelper : StiCacheHelper
{
    public override void SaveReport(StiReport report, string guid)
    {
        var packed = guid.EndsWith(GUID_ReportTemplate)
            ? report.SavePackedReportToString() : report.SavePackedDocumentToString();
        File.WriteAllText(CachePath(guid), packed);
    }

    public override StiReport GetReport(string guid) { /* load packed report/document */ }
    public override void RemoveReport(string guid)   { /* delete the cache file */ }
}
Register the helper on the viewer.
StiNetCoreViewer.CacheHelper = new StiFileCacheHelper();

How it works. The viewer stores and retrieves the report through the helper, so a single render serves paging, exporting and printing across requests.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.