Jinhong Zou wrote:
> There are some trouble with me in the use of open office. I have no
> idea except to ask for help from you.
>
> I want to insert some Macro to the document with the OpenOffice
> API,but I have not found any way could do this successful.
>
> In my mind , to insert Star Basic code to the .odt file with
> OpenOffice API is feasible . Is that right?
>
> If possible,could you give me some simple example for show me how to
> accomplish this function?
>
> Or give some advise for me to found the answer,thank you !
>
> Please forgive my pool english ~~
>
> good luck ~
>
>
> Mars Zou
If you want to insert an OpenOffice.org Basic macro into a document, the
com.sun.star.script.XLibraryContainer API is your friend.
For more details please have a look at section 11.4.2
(Accessing Libraries from Basic) of the developers guide
(http://api.openoffice.org/DevelopersGuide/DevelopersGuide.html).
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]