seznam/pyoo

Question: Is there also a way to call a function from libreoffice?

Opened this issue · 2 comments

I open a document using pyoo. If I then do a certain action, e.g. press a macro button, I would like to call a function in the running python process.
Is that possible?

I open a document using pyoo. If I then do a certain action, e.g. press a macro button, I would like to call a function in the running python process.
Is that possible?
It is possible. you can run macro in the running python process.
But pyoo is not supported. pyuno is support.

Do you have any idea how to do this in pyuno?

Currently I have a (powerful) workaround. I simply write a textfile (with libreoffice basic) and fill it with the python functionname I want to be called. This textfile is monitored by python, which then can call this function.