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

How Can I get running instance of Calc with GetObject

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


Joined: 25 Apr 2007
Posts: 1

PostPosted: Wed Apr 25, 2007 1:13 am    Post subject: How Can I get running instance of Calc with GetObject Reply with quote

I transfer data from MSSQL to Open Office Calc via Visual Basic. I need to use GetObject function in Visual Basic in order to get running instance of Calc.
The following code did not run.


Dim OOApp As Object
Set OOApp = GetObject(, "com.sun.star.ServiceManager")
or
Set OOApp = GetObject(, "com.sun.star.frame.Desktop")
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