holtzy2 General User

Joined: 22 Jan 2007 Posts: 7
|
Posted: Mon Mar 05, 2007 10:40 am Post subject: nofirststartwizard |
|
|
I'm opening OpenOffice via: | Code: | Dim objDummy As Object = New Object 'used only to get a type
Dim objSM As Object = CreateObject("com.sun.star.ServiceManager")
Dim objCR As Object = objSM.CreateInstance("com.sun.star.reflection.CoreReflection")
Dim objDesktop As Object = objSM.CreateInstance("com.sun.star.frame.Desktop")
'Make sure you dim args as System.Array & initialise the array with the type Object so that it is marshaled as a safearray
Dim myArgs As System.Array
myArgs = System.Array.CreateInstance(objDummy.GetType, 1)
Dim openCalcArgs As System.Array
openCalcArgs = System.Array.CreateInstance(objDummy.GetType, 1)
'Clean up
objDummy = Nothing
'Open blank calc spreadsheet, hidden
openCalcArgs(0) = MakePropertyValue("Hidden", True)
Dim objDocument As Object = objDesktop.LoadComponentFromURL("private:factory/scalc", "_blank", 0, openCalcArgs) | Is there a property value I can pass along with Hidden so that the wizard won't appear on first use of OpenOffice? Something like nofirststartwizard maybe? |
|