Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Basically I want to launch Send() method from FaxLibCom, from windows service. But it is not working (The same code, from win forms works great).

So I thought, I could run win froms window, which will be hidden, and automatically launch FaxLibCom to send Fax.

But Windows Service can't launch anything with UI !! I know that it is a long-running process without UI.. but there must be a solution to run another program from windows service.. i think..

Please help me,
Posted
Updated 17-Oct-11 4:50am
v3
Comments
RaisKazi 17-Oct-11 10:44am    
Replaced "lunch" word by "launch". :)
OriginalGriff 17-Oct-11 10:46am    
You missed a few! :laugh:
RaisKazi 17-Oct-11 10:48am    
:)))
mnd017 17-Oct-11 10:52am    
typo :) Anyone know how to solve that?
RaisKazi 17-Oct-11 10:57am    
If your code is working in WinForms then it should work in windows service application also. Have you debug your windows service code?

One of the purposes of a Windows Service is to run without a UI so it of course makes no sense to try using one. You may need to investigate the library further to find if a non-UI call is available, or use another library.
 
Share this answer
 
Comments
Uday P.Singh 17-Oct-11 13:07pm    
agree my 5!
I remember trying doing something similar not long ago, but it turned out that you can call a winforms app from a windows service but it starts as a hidden process and the GUI never gets rendered (you can see the process in TaskManager). The key point to have a windows service to begin with, is so that they can run separately to Windows forms app. However, if you do get it working, please share...

Also have a read here : Winforms-Windows service[^]

Cheers...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900