OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Connect to Ooo from a Windows service (Ole) problem !

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Allan
General User
General User


Joined: 22 Oct 2004
Posts: 15

PostPosted: Thu Nov 04, 2004 9:17 am    Post subject: Connect to Ooo from a Windows service (Ole) problem ! Reply with quote

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
View user's profile Send private message
Cybb20
Super User
Super User


Joined: 02 Mar 2004
Posts: 1569
Location: Frankfurt, Germany

PostPosted: Thu Nov 04, 2004 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Allan
General User
General User


Joined: 22 Oct 2004
Posts: 15

PostPosted: Mon Nov 08, 2004 1:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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