Hi,

I need to create a checkbox in oowriter document with an external script in
python. I think that I manage to create the object with this :

cb1 = doc.createInstance( "com.sun.star.form.component.ChekBox" )

But now I don't know how to insert it into my document. I tried this :

cursor = doc.Text.createTextCursor()
doc.Text.insertTextContent(cursor, cb1, 0)

but it failed with this error : __main__.CannotConvertException: valuehas no
such interface!

I do understand my mistake but how do I insert component in a text document
?

Regards,

Frederic Point

Reply via email to