 |
|
|
 |
|
|
Dear Friends,
I am working on a project related to Electronic Journals. We need to convert MS-Word doc & 2007 docx files to PDF format. The project is an ASP.NET web application. (.ASPX and .asp.vb pages) Do you have any product to handle this conversion in .net environment? Best Regards Ali Ghazaei
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Dear Friends, Do you have any idea about converting MS Word files to PDF by using DOS shell to an installed pdf printer or other external routin to use on aspx pages? I searched for .NET class to convert word2pdfm but it is not found!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
i have a project i want to run external exe in myproject
which have dos like parameter
file.exe/sxml -source admin
how to run it
please
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
:(HI,
I need your help for some sporadic problem that I got during starting new process (C# 1.1).
when I 'm starting new process on remote machine, my process starts properly but from some strange reason it does not exit , and the CPU is growing almost to 98% despite the fact that the application I run via this process is finishing its job.
Please see my code below:
Code: ( text ) proc = new Process(); proc.EnableRaisingEvents = true; proc.StartInfo.FileName = m_AppExeName; proc.StartInfo.WorkingDirectory = m_AppFolderName; proc.StartInfo.UseShellExecute = false;
Lior
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi,
somebody could please tell me how to start an application[notepad.exe] which runs in foreground.
i tried process.start("notepad.exe") it works but runs notepad as background process.
awaiting for solutions and thanks in advance
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
I need to have my windows service call a windows application. I have set the windows service to interact with the logged in user. I am trying to call the app using the the Process.Start method from the OnStart in my Service.
It calls up fine, but seems to lock up, eventually "Not Responding". This happens to every single app that I have tried. Seems like it doens't completely let go of the app that is being called.
I have no clue as to how to trouble shoot this problem, but it is consistent.
My Service is looking for the presence of a file and executing it if present. This file may have a user interface (i.e. message box or word document or something, so it can't run only in the background).
Any ideas?
Just wingin' it as I go.
|
| Sign In·View Thread·PermaLink | 1.50/5 (3 votes) |
|
|
|
 |
|
|
I also need this functionality for my Windows Service, to execute external application. Do you already have solution for this?
Daniel
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi, is there posible for me to call a program from my software(written in c#) without having the protocol or interface provided by the developer of the program? If ya, is there any sample code for reference? Thanks a lot!
Regards, Alex Newbie that lost
|
| Sign In·View Thread·PermaLink | 2.18/5 (7 votes) |
|
|
|
 |
|
|
I want to launch an application that run as administrator, even the windows logon as normal user (doesn't have administrator priviledge) ?
|
| Sign In·View Thread·PermaLink | 1.00/5 (7 votes) |
|
|
|
 |
|
|
Hello after calling ShowDialog() method in SaveFileDialog class or OpenFileDialog class the Start() method in Process class don't work how can i do.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
I need to start a process from a web site that will interact with the desktop. When I start the process using this method the process is in the process list but cannont be interacted with on the users desktop. Any idea?
|
| Sign In·View Thread·PermaLink | 1.20/5 (4 votes) |
|
|
|
 |
|
|
When combine Process.Start and WaitForExit(), the calling thread will be not refreshed.
For example, the current thread has a UI, executing following codes: Process obj = Process.Start("notepad.exe",""); obj.WaitForExit();
Then you move the Notepad over the calling UI area, the area will be wipe out (try and see).
My question is: How to make the calling UI refreshed?
Zenlander
|
| Sign In·View Thread·PermaLink | 2.75/5 (4 votes) |
|
|
|
 |
|
|
When you do obj.WaitForExit() your application will block until notepad exits.
Because your application is blocking, the app's message pump will stall.
Because your application is no longer pumping messages, when Windows informs it that it has to update its UI (i.e. when Windows sends it a WM_PAINT message), it doesn't handle them.
Since it doesn't handle paint messages, your UI won't update.
To handle this, you need to use a more complicated synchronization mechanism. You can't just block indefinitely, because that app needs to not be blocking in order for the message pump to flow. You could start the execution of the process from a different thread, which thread could then sit and block indefinitely while your main app pumps messages.
Additionally, I believe that a System.Diagnostics.Process has an Exited event. You could add an event handler and wait for the process to end that way.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi !
That was nice, but how to run an application in .Net CF - ther's no System.Diagnostic.Process there...
BR
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
How do you make the container form of the process one of the MDI child windows of your application? In other words run the external ap inside your ap...
Regards, Mesrop Simonian
|
| Sign In·View Thread·PermaLink | 1.50/5 (5 votes) |
|
|
|
 |
|
|
One problem with your solution is that it depends on a specific version of the .NET Framework. If the framework is upgraded on the target workstation, your code is going to fail when it tries to lauch the intall utility, because it will no longer be in the expected location on the hard drive. Using %WinDir% gets you close, but there is no _safe_ way to deduce the location of the .NET Framework files, and in computing terms, a miss is as good as a mile.
I've recently been through a similar exercise with the RegAsm utility. I was unwilling to leave this obvious weakness in my deployed code. A little further research revealed that I could achieve the same result using classes in the Framework itself. I wouldn't mind betting you can find a way to do the install programmatically in your own code, without relying on an external program.
--Tim
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
Yes, Tim, I agree that hard-coding of the .NET path is not the way to go for production code. With production code one will surely code more carefully. I deliberately hard-coded to keep the explanations and illustrations simple. I suggest people use Installshield or something similar to install and configure new projects.
For Real-world applications, each person should apply the examples to the demands of their own business environment, the type of system, etc. By this I mean that production code may use any environment variable - not just %windir% and it may involve calling any application - e.g. calling the *.EXE of an old legacy system, or a command prompt program, whatever may be required for the system.
Greetings Willem
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I agree here, this code isn't meant to be a cut and paste to use in a production environment. It is an article that is meant to give examples of how to use it. It was a perfect explaination for what I needed to do. I actually needed to open a command window, so the sample of getting the windows install directory from the environment variable was a great one.
|
| Sign In·View Thread·PermaLink | 2.80/5 (5 votes) |
|
|
|
 |