Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Error while saving report twice Post Reply Post New Topic
Author Message
bhaskarreddy
Newbie
Newbie


Joined: 07 Oct 2008
Location: India
Online Status: Offline
Posts: 3
Quote bhaskarreddy Replybullet Topic: Error while saving report twice
    Posted: 04 Feb 2009 at 9:54pm
Hi
With CRDesignerCTRl.dll generating crystal reports XI in .Net.
The issue i am getting is:
can't able to save the report second time in the same instance of application running.
it is giving the error as : File is in use by other application.
 
Observations: while opening the report second time it is creating temporary file in temp folder.Until that file deleted automically user is unable to save the report. i tried to delete temp file manually but it is not allowing to delete.
 
I am quite thankful for your suggestions to resolve that issue. 
 
Bhaskar Adapala,
SE,India
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 05 Feb 2009 at 3:13pm
Are you closing the report between saves?  If you, you need to Dispose() the report object (I'm not sure what class you're using) prior to re-opening the report.
 
The .NET Crystal assemblies are primarily wrappers for COM objects.  COM objects don't automatically clean up after themselves very well, so you have to explicitly Dispose() them when you're done with them.  This should clear the file lock on the report file.
 
-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.