Jiri Palecek wrote:
> Hi all, I have a question. Is there any way (best through UNO) to
> insert an object in a document or to create an object that can be
> inserted?

You mean something like inserting a Chart into Writer:

obj=ThisComponent.CreateInstance("com.sun.star.text.TextEmbeddedObject")
obj.CLSID="12DCAE26-281F-416F-A234-C3086127382E"
sel = ThisComponent.CurrentController.Selection
range = sel.getByIndex(0)
obj.attach( range )

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to