设置报告缓存路径不能同时工作
set report cache path not work in stimul
我的刺激缓存太大,大约 40G。
我想更改此缓存的路径,所以我这样做:
Dim CacheFolder As String ="E:\StimulsoftReportsCache"
report1.ReportCachePath = CacheFolder
report1.ReportCacheMode = StiReportCacheMode.On
report1.RenderedPages.CanUseCacheMode = True
report1.RenderedPages.CacheMode = True
report1.RenderedPages.Clear()
'IN This Section Load Report On Report1
report1.Compile()
之后当我编译报告时 report1.ReportCachePath
更改为 ""
我不知道为什么会变
您应该使用下一个静态方法设置缓存路径:
Stimulsoft.Report.StiOptions.Engine.ReportCache.CachePath
我的刺激缓存太大,大约 40G。
我想更改此缓存的路径,所以我这样做:
Dim CacheFolder As String ="E:\StimulsoftReportsCache"
report1.ReportCachePath = CacheFolder
report1.ReportCacheMode = StiReportCacheMode.On
report1.RenderedPages.CanUseCacheMode = True
report1.RenderedPages.CacheMode = True
report1.RenderedPages.Clear()
'IN This Section Load Report On Report1
report1.Compile()
之后当我编译报告时 report1.ReportCachePath
更改为 ""
我不知道为什么会变
您应该使用下一个静态方法设置缓存路径:
Stimulsoft.Report.StiOptions.Engine.ReportCache.CachePath