Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenOffice AND VB

Status
Not open for further replies.

MissyEd

IS-IT--Management
Feb 14, 2000
303
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top