Is it possible to listen to an event in MS Word in java?

140 Views Asked by At

I'm making an application when an user can modify the content of a MS Word document and when the user clicks the saving button, the file will be send to the server.

So I just wanted to known if it's possible with JACOB or any other COM wrapper using Java, to listen to events in Word ? If so, could you tell me how ? I look through the web and I couldn't find any solution. Thanks in advance !

1

There are 1 best solutions below

0
Jonathan Arendt On

So I don't know if Java would be best language of choice. I found something that indicates that the save event it not explicitly exposed, but there is an event just prior to the save. However, this might have to be coded in C# or Visual Basic. You might be able to use the VB event to trigger java code, that when the file is updated (date modified or something) then it uploads to the sever.

Here is the MSDN page that might help with the save listener, Hope it Helps. Good luck.

Listening to Save event in word.