I'm trying to understand how the 'com.sun.star.drawing.AppletShape' Service is working.
I have no problem to create and add this shape (here as an example in calc in python):
Code: Select all
def appletShape():
doc = XSCRIPTCONTEXT.getDocument()
sheet = doc.Sheets[0]
drawPage = sheet.DrawPage
appletShape = doc.createInstance('com.sun.star.drawing.AppletShape')
drawPage.add(appletShape)
The problem is, I cannot change them. For example, if I try to change the AppletName after the creation, it crashes the application (calc, draw, impress on both OS).
I'm trying to understand if I do something wrong (or if this a bug) and in case mistake is on my side how to do it the right way.
Many thanks for your consideration in advance!