Didier Dorange-Pattoret wrote:
> Thank you Mathias.
>
> But could you explain me how, with an example.
> I tried Maformule = mondocument.createInstance("com.sun.star.Formula")
> without succes.
Here's something for Basic that inserts a Chart:
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 )
Formula objects just have another CLSID, but I don't know it from
memory. Maybe it's documented in the Developers Guide or somewhere else
or somebody else can help here.
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]