Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All



I was informed that my web application that uses Crystal Reports was filling up the Servers Windows\Temp folder with report files.

After a google the best answer I could find to this problem was to close and dispose the report in the Page Unload:-

private void Page_Unload(object sender, System.EventArgs e)
{
if (MyReport != null)
{
MyReport.Close();
MyReport.Dispose();
}
}



I have tested this code but I still get these report files being created.

Any concrete solutions to this?

I dont want to write some app to clean up the said location.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900