|
Does anyone have solution. about How to design crystal report at runtime.
In my application I want to design a crystal report at runtime or (Design at end user) in Windows forms.
Where the end user can design the report with specified fields and then display the report for that.
|
|
|
|
|
Hello,
First of all I would like to say that I wasn't really sure where this should go, so sorry if it's in the wrong forum.
Now to my problem: whenever I build my project in Visual Studio 2010, it tells me that my executable is in use by another program. (Which it is, since I can't delete it through Windows Explorer either) I then have to restart my computer in order to delete the file.
This is really annoying, and the reason I post here is because I have a theory that Visual Studio 2010 might be the program using the file. (NOTE: I have confirmed that it is Visual Studio 2010 that is using my executable file)
Thanks,
Theo
|
|
|
|
|
This is not a problem of VS2010, its more or problem of your applications exit routine.
In most cases this happens, if some thread is still alive, after you "stopped" your application.
To get access to your exe without restarting windows, do the following steps:
Task-Manager -> Process -> [Select your exe] -> Kill/Terminate Process
Greetings
Covean
|
|
|
|
|
My app exists just fine, and the Windows Explorer message says, when trying to delete the file, that the program using my executable is Visual Studio 2010.
Any ideas?
|
|
|
|
|
Its also possible that the debugging causes this problem, but I don't think so.
Does it happen every time you starts and exits your executable or only from time to time?
(or does it only happen if you start in debug (F5) mode?)
Greetings
Covean
|
|
|
|
|
When I start my app for the first time, it doesn't happen. After I've finished debugging, it happens all following times.
It happens in both the Debug and Release folder.
|
|
|
|
|
Are you really sure your application exits flawless? (please take a look in the task manager and make sure
that your exe is not running.)
If your application isn't running, then I really think your debugger causes this problem
and I don't know how to solve this (maybe reinstall VS2010).
Greetings
Covean
|
|
|
|
|
The application isn't displayed when it has exited.
I'll try reinstalling VS2010.
|
|
|
|
|
It could be that the Visual Studio Hosting process is causing this issue. To check, you can disable this by selecting Properties > Debug and uncheck the Enable the Visual Studio hosting process checkbox.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
That seems to work. What does the Visual Studio Hosting process do?
|
|
|
|
|
It's designed to do this[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Isn't there some kind of way I can configure the hosting process to not keep using my exe when it's closed?
|
|
|
|
|
Nothing worthwhile. I always disable it.
|
|
|
|
|
You do? How big is the performance loss?
|
|
|
|
|
|
hi all...i have to create directory in win7 and copy file in this directory programmatically in using c#..my application properly work in winXP...but when i run my application in win7..it does not create directory as well as copy file...tell me what i do for win7....it is a C# windows desktop application...
regards
tanzeel
|
|
|
|
|
In win7 you need to give admin access (or you need to run your windows application as an administrator) to your application to allow it to create directory.
Hope this will help!
Jinal Desai - LIVE
Experience is mother of sage....
|
|
|
|
|
|
there is no error occur...application execute successfully but did not create directory in win7
|
|
|
|
|
i login from administrator user but did not create directory in win7
|
|
|
|
|
Can you show us your code?
|
|
|
|
|
Logging in is not enough to be an administrator. You should run your program as administrator. Also if your program does not give your an error message, it's probably because you aren't checking for any errors. (boo! boo!).
If it fails to create a directory, you should not be creating your directory there in the first place (Places like the root of c:, program files, windows, etc... are taboo.
|
|
|
|
|
AFAIK the situation is the same on Vista and Windows 7, and will continue to be so on newer versions of Windows:
- a lot of directories cannot be modified by a regular user; those include the top-level directory of your system partition (usually C: ) and all important directories such as /Windows, /Windows/system32, and /Program Files.
- as Michel said, you need an administrator account AND an app "running as administrator" so get over those restrictions.
What should work though is access to a number of special folders intended to hold your app's settings and local data, and other things like that. Have a look at Environment.GetFolderPath() and Environment.SpecialFolder
Within such directories, one usually creates a hierarchy of folders, so a typical sequence would be:
string fileSpec=Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)+
@"\companyName\appName\logfile.txt";
string folder=Path.GetDirectoryName(fileSpec);
Directory.CreateDirectory(folder);
StreamWriter writer=File.CreateText(fileSpec);
...
|
|
|
|
|
|
Parallel.For is part of .NET 4.0, that uses a CLR version different from .NET 3.5.
So you can't use Parallel.For or any 4.0 new feature in a 3.5 or older project.
EDIT: Please, do not delete your message after someone answered you.
|
|
|
|