Joined: 23 Aug 2005
|Posted: Tue Aug 23, 2005 5:17 am Post subject: Base automation with visual basic
i'm a newbie here
I have search the forum but i can't seen to find any thing about it. I have read many topic about automation of openoffice but they nerer speak over the Base why is that.
I have recently downloaded the OOo 2 (beta) i geus and in here is the Base i want to automate it with vb.
I have tried this code:
Set oRootOOoObject = CreateObject("com.sun.star.ServiceManager")
Set oOOoObject = oRootOOoObject.createInstance("com.sun.star.frame.Desktop")
Set oBase = oOOoObject.loadComponentFromURL("private:factory/sbase", "_blank", 0, Array())
But ad the last line i get an error
Can any body help me
Is it even possible to do this