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.

Используя этот сайт, вы соглашаетесь на использование файлов Cookie для аналитики и персонализированного контента. Файлы Cookie хранят полезную информацию на вашем компьютере, чтобы помочь нам повысить эффективность и удобство использования. Для получения дополнительной информации, пожалуйста, прочтите Конфиденциальность и Использование Cookie.