| View previous topic :: View next topic |
| Author |
Message |
Allan General User

Joined: 22 Oct 2004 Posts: 15
|
Posted: Thu Nov 04, 2004 9:17 am Post subject: Connect to Ooo from a Windows service (Ole) problem ! |
|
|
I have a program can run as Windows Console (logged) or Windows service (background)
In console mode it works fine (with or without quickstart).
In service mode when I try to create OleObject I obtain a violation
oOpenOffice := CreateOleObject('com.sun.star.ServiceManager');
(I do the same thing with other products) It seems that soffice.exe can't be invoked from a service ???
Is there a specific method in this context ? May I need to invoke ServiceManager with a different way ?
(In fact I would automate modification in document from differents external data on server from a queue).
Environment : W2000/XP, Delphi, Ooo 1.1.1
Thanks |
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Thu Nov 04, 2004 10:09 am Post subject: |
|
|
What language is this?
And the other question is what does it respond to you.
It should actually work and create the new process ("soffice") under windows.
Please give some more feedback.
Thank you
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
Allan General User

Joined: 22 Oct 2004 Posts: 15
|
Posted: Mon Nov 08, 2004 1:50 am Post subject: |
|
|
Language is Delphi 6/7..
When I try to create the OleObject I have an exception:
"Access violation .....module mydll.dll at adress...".
It seems that a service can't create oleobject to soffice...??
thanks |
|
| Back to top |
|
 |
|