Code: Select all
Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager")
Code: Select all
objServiceManager.Close() // thows exeption
Code: Select all
Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager")
Code: Select all
objServiceManager.Close() // thows exeption
Code: Select all
objServiceManager.dispose()
Edit: My signature is a standard signature not an advice for you. If you are using Wscript.CreateObject your language is definitely VB Script. And Visual Basic would be the correct phrase for the scripting language that you are using. |
Code: Select all
Set objServiceManager= WScript.CreateObject("com.sun.star.ServiceManager")
objServiceManager.dispose()
Set objServiceManager = Nothing
Code: Select all
Set StarDesktop = objServiceManager.createInstance("com.sun.star.frame.Desktop")
StarDesktop.terminate