sept. 11

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

Commentaires

Mohammed Aquil

Posted on mercredi, 18 juin 2008 00: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.

pe.dautreppe

Posted on mardi, 15 juillet 2008 11: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 ?

Doctor is Out

Posted on samedi, 21 mars 2009 15:25

still the the two method -ExportToStream - SetDataSource is working
  

Naveen

Posted on jeudi, 26 mars 2009 13:14

HI!!!
I am using following code but still temp RPT file exist in "C:\Windows\Temp". Due to this I am getting following Error "The maximum report processing jobs limit configured by your system administrator has been reached."

Code

DailyCollection cr = new DailyCollection();

        protected void Page_Load(object sender, EventArgs e)
        {
            cr.SetDataSource(ds.Tables["DailyFeeCollection"]);
            CrystalReportViewer1.ReportSource = cr;
                  
         }

        private void Page_Unload(object sender, EventArgs e)
        {
            CloseReports(cr);
            cr.Dispose();
            CrystalReportViewer1.Dispose();
            CrystalReportViewer1 = null;
            
        }


        private void CloseReports(ReportDocument reportDocument)
        {
            Sections sections = reportDocument.ReportDefinition.Sections;
            foreach (Section section in sections)
            {
                ReportObjects reportObjects = section.ReportObjects;
                foreach (ReportObject reportObject in reportObjects)
                {
                    if (reportObject.Kind == ReportObjectKind.SubreportObject)
                    {
                        SubreportObject subreportObject = (SubreportObject)reportObject;
                        ReportDocument subReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName);
                        subReportDocument.Close();
                    }
                }
            }
            reportDocument.Close();
        }

ferron

Posted on mercredi, 5 août 2009 18:18

There are two things you need to do.

What i did was to in the  registry key edit

HKEY_LOCAL_MACHINE\SOFTWARE\Crystal Decisions\10.2\Report Application Server\Server\PrintJobLimit  and change it to -1


To clean up my temp file i wrote a batch script which is run every 30 minutes

@echo off
echo Job start on %date% at %time% under %UserName% >> c:\fgmis\scripts\Log.txt
taskkill /F /IM w3wp.exe
del /Q c:\windows\temp\*.*
echo "%date% : Deleted windows\temp files" >> c:\fgmis\scripts\deltemp.log


At first when i tried deleted i realised the file was been locked, so downloaded unlocker and found out that w3wp.exe was locking the file

I added the taskkill command and /F to forcefully kill the task. It works perfectly for me

Kashif Rana

Posted on jeudi, 5 novembre 2009 09:50

vote down
  

The other temp directory than C:/windows/temp should be located in your web site's virtual directory. Just add that temp folder in your web site's directory and when you make its virtual path to host it on IIS , it automatically gets included. If you want to make it at some other place like at D:/CrystalTEmp, you need to add this folder in your Inetmgr, just right click this directory and enable its web sharing. And yes you need to give Network service full rights over this temp folder.

If your placing your web site directory in inetpub/wwwroot, then you dont need to give rights to network service.

workers

Posted on dimanche, 4 août 2013 08:11

Hi there are using Wordpress for your blog platform? I'm new to the blog world but I'm trying to get started and set up my own. Do you need any html coding expertise to make your own blog? Any help would be really appreciated!

Feel free to visit my web blog  workers - http://www.amaworkforce.com

trouble bipolaire I

Posted on mercredi, 21 août 2013 16:52

Hey I am so thrilled I found your site, I really found you by error, while I was looking on Bing for something else, Regardless I am here now and would just like to say kudos for a incredible post and a all round exciting blog (I also love the theme/design), I don't have time to read it all at the minute but I have bookmarked it and also added in your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the fantastic work.

my weblog;  trouble bipolaire I - http://wehelpbuyinshop.com/topamaxenlignebe1/

sexcam

Posted on mardi, 15 octobre 2013 00:46

If you're interested to know what's happening on screen, but the price is what really seals the deal. Everyone makes a choice how to grow and move forward in the wake of the election, and I was out of razors. The Kindle 2 does away with almost every awkward convention introduced in the original version, helped largely by the fact that we are a business.

my webpage;  sexcam - sp1wiki.space-pioneers.eu/index.php

Dian

Posted on samedi, 2 novembre 2013 03:11

Howdy very nice web site!! Man .. Excellent .. Wonderful .. I will bookmark your blog and take the feeds additionally? I am glad to find a lot of helpful information here in the put up, we'd like work out extra strategies on this regard, thank you for sharing. . . . . .

Have a look at my blog post :: free are there any legitimate online business opportunities ( Dian - Www.Nopchina.net/.../nopcommerce-chinese.html )

solo ad

Posted on lundi, 11 novembre 2013 07:54

Web Promotion based upon Darwins Theory. Survival of the Fittest. Take the Panther Package. A Pretty Ferocious Animal with Pretty Ferocious Results. Starting With Your Personal Message Emailed to 500,000 CONTACT Emails. All Interested in Your Service or Product. Purchase Now For *$9.95 and Get A Boost Of CONTACT Emails To 1,500,000. Plus, Silver Submitter Access, Global Marketing and Premium Classifieds. Its Your Turn To Succeed With Web Promotion Zoo.

Here is my web page  solo ad - http://WebPromotionZoo.com

empower network

Posted on mardi, 19 novembre 2013 04:35

It's awesome designed for me to have a website, which is valuable for my know-how. thanks admin

Here is my web blog -  empower network - http://give-me-articles.com

www.iherb.com

Posted on lundi, 9 décembre 2013 14:15

Hi every one, here every one is sharing these kinds of knowledge, so it's fastidious to read this blog, and I used to go to see this web site every day.

Feel free to visit my page -  www.iherb.com - www.sefersefer.co.il/modules.php

dashark.com

Posted on mercredi, 21 janvier 2015 02:49

Pingback from dashark.com

How To Fix Crystal Reports Error In File Temp in Windows

computertutorials.science

Posted on vendredi, 24 avril 2015 13:48

Pingback from computertutorials.science

crystal reports free - computer tutorials

cssphp.space

Posted on mercredi, 13 janvier 2016 16:18

Pingback from cssphp.space

c# - Clear crystal reports temp files - CSS PHP

getcashbackmoney.com

Posted on mercredi, 10 février 2016 16:40

Pingback from getcashbackmoney.com

Temporary Office Space |

steroidsforsale.biz

Posted on jeudi, 22 décembre 2016 16:17

Pingback from steroidsforsale.biz

anabolic steroids

pimaglobal.org

Posted on jeudi, 5 octobre 2017 16:48

Pingback from pimaglobal.org

Inprocserver Error

Ajouter un commentaire




biuquote
  • Commentaire
  • Aperçu immédiat
Loading