질문하기

javi's profile - activity

2017-10-20 13:00:00 +0200 받은 배지  정리의 달인
2016-03-08 04:24:51 +0200 받은 배지  유명한 질문 (source)
2016-03-08 04:24:51 +0200 받은 배지  주목할 만한 질문 (source)
2015-10-14 00:57:45 +0200 받은 배지  유명한 질문 (source)
2014-12-14 18:57:51 +0200 받은 배지  인기있는 질문 (source)
2014-12-14 18:57:51 +0200 받은 배지  주목할 만한 질문 (source)
2014-11-08 12:03:00 +0200 받은 배지  인기있는 질문 (source)
2014-10-20 13:30:41 +0200 받은 배지  편집자 (source)
2014-10-20 12:14:56 +0200 질문하였습니다 Is there changes in the way that java - UNO - libreOffice, work from OO-3.3?

Hi,

Someone knows if something have change in the way java works with libreOffice (uno) from 3.3 version?

I have a java applet that is capable of working properly with OO-3.3, (starting an openOffice process with -accept and a port). The applet opens a document from a database, and listens the save or close events, in order to submit the document to the data base.

I have rebuilt the applet with the java libraries of the libreOffice-4.2.6.3 instalation, but it doesn´t work properly.

With libreOffice (writer), when I edit several documents at the same time, when I close one of the opened documents, it goes to the database correctly, but when I try to open another document, it is opened, but windows shows a dialog with "libreOffice has stoped working, Window is checking for a solution", when it is accepted, libreOffice process (soffice.bin) and all the opened documents desapear.

It seems that it works properly if I only work with only a document, because, when the applet detects a close event, and there is only a document in the desktop, the applet closes the desktop (desktop.terminate()). This way the next time that libreOffice will be opened, it will be a fresh instance of the process. If the applet doesn´t terminate de desktop, the problem described above will happen.

Before closing the document, the applet free the listeners: removeCloseListener, removeModifyListener, releaseDispatchProviderInterceptor and desktop.removeTerminateListener

Is there any example code or a good tutorial that describe this integration with the new libreOffice?

Is there a way to open a complete new instance of soffice.exe and soffice.bin for each open document?

Is there a way to get the log of what is happening in libreoffice when libreoffice crashes?

Thank you very much,

Javi.

2014-10-20 11:41:12 +0200 질문하였습니다 ¿Cambios en la forma de interactuar con java - UNO - libreOffice desde OO-3.3?

Hola,

¿Ha cambiado algo en el modo de interaccionar desde java con libre office desde la versión 3.3?

Tengo un applet que es capaz de funcionar correctamente con OO-3.3, (arrancando el proceso OO con -accept y un puerto) El applet abre un documento de una base de datos y escucha el evento de guardar o cerrar el documento para subirlo a la base de datos.

He recompilado el applet con las librerías java de la instalación de libreOffice-4.2.6.3, y no funciona correctamente.

Con libreOffice (writer), cuando edito varios documentos al mismo tiempo, cuando cierro un documento, al intentar abrir otro, libreOffice lo abre y se genera un mensaje "libreOffice dejó de funcionar, Windows está buscando una solución al problema", si se acepta, el proceso de libreOffice (soffice.bin) desaparece y con él, el resto de documentos abiertos.

Parece que funciona si solo trabajo con un documento a la vez, pues si cuando detecto un cierre no hay mas documentos activos abiertos en el desktop, termino el desktop explícitamente (desktop.terminate()). Así que la próxima instancia de libreOffice es totalmente nueva. Si no cierro el desktop también se produce el problema anterior al abrir un nuevo documento.

Antes de cerrar el documento libero removeCloseListener, removeModifyListener, releaseDispatchProviderInterceptor y desktop.removeTerminateListener.

¿Hay algun codigo de ejemplo o un buen manual que describa como hacer esta integración con libreOffice?

Muchas gracias.

Javi.