How know if a file is modified?

Add-in Express™ Support Service
That's what is more important than anything else

How know if a file is modified?
 
Destaque Empreendimentos em Inform?tica


Guest


Hi for all,
my Add-In performs an upload when a file is saved. But, for now, the upload is occuring every time when the user clicks on Word Save button. But, some times the user can click without modify the file content, and then I do not need to do the upload. How can I know it?

Regards,
Sergio
Posted 01 Dec, 2014 12:40:17 Top
Destaque Empreendimentos em Inform?tica


Guest


Ps.: I'm using the OnDocumentBeforeSave event (from MS Word)
Posted 01 Dec, 2014 12:41:11 Top
George Spears




Posts: 79
Joined: 2010-05-06
This might be helpful...It is entitled "Obtaining Directory Change Notifications".
http://msdn.microsoft.com/en-us/library/aa365261%28VS.85%29.aspx

George Spears
Posted 01 Dec, 2014 12:52:25 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Thank you, George!

Hello Sergio,

You can read the Document.Saved property (see http://msdn.microsoft.com/en-us/library/office/ff194753%28v=office.15%29.aspx) to check if the document is modified.


Andrei Smolin
Add-in Express Team Leader
Posted 02 Dec, 2014 02:25:51 Top
Destaque Empreendimentos em Inform?tica


Guest


Thank you Andrei.

Sergio
Posted 02 Dec, 2014 07:11:46 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 02 Dec, 2014 08:37:16 Top