Hi
Anyone know why this is happening with openoffice and vb ?
If I copy bits of the vbscript example to a vb app, it gives me an error - cannot create activex object:
set objServiceManager = createobject("com.sun.star.ServiceManager"
If i then run the vbscript example, it works fine:
Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager"
When I run my app again, its OK. The next time it fails. I think its due to setting the object to nothing when I terminate the calling class, but dont understand why windows scripting host works when vb does not.
Does anyone know of any resource for automating starwriter from VB ? Missy Ed - Bolton, UK
Anyone know why this is happening with openoffice and vb ?
If I copy bits of the vbscript example to a vb app, it gives me an error - cannot create activex object:
set objServiceManager = createobject("com.sun.star.ServiceManager"
If i then run the vbscript example, it works fine:
Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager"
When I run my app again, its OK. The next time it fails. I think its due to setting the object to nothing when I terminate the calling class, but dont understand why windows scripting host works when vb does not.
Does anyone know of any resource for automating starwriter from VB ? Missy Ed - Bolton, UK