Crystal Reports: "Load report failed" error.

Temporary files are not being deleted in "C:\Documents and Settings\Administrator\Local Settings\Temp"


Every times when create crystal reports, it create temp file like "CrystalReport2 {6B08E17B-CB73-49DE-ABB7-FEAA2CD2565B}.rpt" in above path that can not delete cause of system in used.


if create crystal reports many times that make hard disc full and system down.

 We already used following solution
protected void Page_Unload(object sender, EventArgs e)
  if(RptDoc != null)

2. Set printjob value to -1 in registry file for

How do i manage it..

Thank so much for your kindness

Shankar Gidwani
Sr. Software Engineer

<Editted mlmcc TA>
Who is Participating?
Ido MilletConnect With a Mentor Professor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
You can schedule a batch file to run every day and delete old temp files.
What version of Crystal?

This is an issue with many versions of Crystal since Crystal uses several temp files when building a report.  Sometimes the only solution is as suggested above a daily or more often if need be run of a script to delete the files.

You may be able to add code to your application to delete the files as the application ends.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.