Calendar

<<  août 2008  >>
lumamejevesadi
28293031123
45678910
111214151617
181920222324
25262728293031
1234567

View posts in large calendar
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

(septembre 11, 2007 12:26)

Crystal Reports may generate some temporary files ('*.tmp', '*.rpt') in a temp folder (typically the c:\windows\temp folder or you temp folder in "Local Settings"). This is not a big deal because these files are quite small (between 0k and 200k for the ones I have seen during my investigations) but it can be a potential problems as they are very numerous (till 10 for a single export) and contains some potentially sensitive information (some data of your exports).

I have seen that these files are generated by the following methods:

  • SetDataSource
  • ExportToStream

How to correct this problem ?

  • Be sure to call the "Close()" method on your report object. This will automatically delete all the temporary generated files. In fact almost all of them as you will still have a "temp_xxx.rpt" file generated, even if you call the ExportToStream method.
  • Be sure to call the "Dispose()" method so Crystal Reports will release all the locks it may have on the object and the last generated file will be deleted

Of course, you could call only the "Dispose()" method as it will call internally the "Close()" method, or even not calling any of them but using the "using" syntax

Billets liés

Commentaires

juin 17. 2008 23:38

Hi
I am facing one issue related to InprocServer/TempDir in the Windows Registry.

I have to do an implementation of one of our Intranet Solution in Canada. The application is developed using ASP.Net.

We are using Crystal Report to create reports. You must be aware that while generating the reports Crystal Report uses C:\Windows\Temp for writing temporary files. The problem is the client does not want us to use that folder for security reasons.

We tried entering the values in the windows registry in the InprocServer/TempDir but it throws an exception "Error in File UNKNOWN.RPT:
The request could not be submitted for background processing."
Can you tell me what do I have to do inorder to handle this error.

Mohammed Aquil

juillet 15. 2008 10:21

Hola Mohammed !

Sorry for the late reply but I was in holidays !
Sorry but I cannot help you in your problem, I didn't know we could configure the temporary path in the registry.

Have you seen another solution in the meanwhile ?

pe.dautreppe

Ajouter un commentaire


 

  Country flag





Live preview

août 28. 2008 17:16

Powered by BlogEngine.NET 1.2.0.0 | Theme by Pierre-Emmanuel Dautreppe