Reports with thousands of pages

Stimulsoft Reports.NET discussion
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Reports with thousands of pages

Post by Vital »

Hello Milton,

You need call Dispose method of report to clear page files.

Thank you.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Reports with thousands of pages

Post by Milton Guevara »

Hello Vital
i am using the following code

Report.Show(True)
Report.Dispose()


but does not delete pages from the cache

Milton
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Reports with thousands of pages

Post by Vital »

Hello,

You can use following code:

Code: Select all

string temp = (StiOptions.Engine.ReportCache.CachePath == null || StiOptions.Engine.ReportCache.CachePath.Length == 0) ?
				Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) : 
				StiOptions.Engine.ReportCache.CachePath;

temp = Path.Combine(temp, "StimulsoftReportsCache");

if (!Directory.Exists(temp))Directory.Delete(temp);
Thank you.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Reports with thousands of pages

Post by Milton Guevara »

Hello Vital
Thank you for your help.

Milton
Post Reply