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




Posts: 40
Joined: 2011-03-10
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




Posts: 40
Joined: 2011-03-10
Ps.: I'm using the OnDocumentBeforeSave event (from MS Word)
Posted 01 Dec, 2014 12:41:11 Top
George Spears




Posts: 70
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: 14094
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.

Regards from Belarus (GMT+3),

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




Posts: 40
Joined: 2011-03-10
Thank you Andrei.

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


Add-in Express team


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

Regards from Belarus (GMT+3),

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