| View previous topic :: View next topic |
| Author |
Message |
Zsolt Guest
|
Posted: Mon Sep 15, 2003 11:31 am Post subject: OOo as NT service |
|
|
Hello!
Can I run OOo as an NT service ? Or it is possible only from the command line using the following command ?
soffice.exe -invisible -accept=socket,host=localhost,port=8100;urp;StarOffice.NamingService
Many thanks !
Zsolt |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
Posted: Mon Sep 22, 2003 10:58 am Post subject: |
|
|
If you could, would you really want to?
I assume you want OOo as an NT service so that it can be running even when nobody is logged in.
What happens when a program running as a service tries to put up any user interface? (I don't know the answer to that.) Launching it with the -invisible option might be an option.
Isn't it possible to build a Service in Visual Basic using a wizard? (Again, I don't know VB, but I've seen this done.) If so, then build a trivial wrapper "service" in VB that gets the proper service events (i.e. start, stop) and then launches or terminates the soffice program. Launch soffice with -invisible. Terminate soffice by using automation from VB to get the Desktop object and then call the terminate() method on it.
I'm assuming that you want to do something like make API calls to a running OOo service in order to do document conversion from one type to another. For example, a web service or page that converts XLS to PDF could be implemented by calling OOo via. its api. When you open the XLS document, be sure to add a property that indicates to open it hidden. I learned about that last weekend when building my Document Converter program, which is also described here
http://www.oooforum.org/forum/viewtopic.php?t=2810
on OOoForum. _________________ Want to make OOo Drawings like the colored flower design to the left? |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|