Hallo noch mal,

ich habe den Fehler gefunden. Jetzt läuft es:

es muss myProp() statt myFileProp() heißen.

Danke noch mal.

Horst


Am 05.10.2018 um 08:33 schrieb [email protected]:
tc = ThisComponent

Dim myProp(0) as new com.sun.star.beans.PropertyValue

myProp(0).name="Password"
myProp(0).value = "meinPasswort"

oDocument = StarDesktop.loadComponentFromURL(converttourl("D:\meinTabellendokument.ods"), "_blank", 0, myFileProp())

document   = tc.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:Print", "", 0, Array())


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Antwort per Email an