Page 2 of 2

Reports with thousands of pages

Posted: Fri Jan 02, 2009 6:54 am
by Vital
Hello Milton,

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

Thank you.

Reports with thousands of pages

Posted: Fri Jan 02, 2009 10:55 pm
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

Reports with thousands of pages

Posted: Mon Jan 05, 2009 8:55 pm
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.

Reports with thousands of pages

Posted: Sat Jan 10, 2009 7:14 pm
by Milton Guevara
Hello Vital
Thank you for your help.

Milton