none
autosave & close RRS feed

  • Question

  • My team shares a .doc document frequently in office 2003.  How can i code it so that it auto saves and shuts down after 5 mins of non use/inactivity so that another person can access it? 
    Thursday, July 14, 2011 10:26 PM

Answers

  • Hello,

     

    You could either develop a document solution, or an Application Solution. The current link shown the VSTO versions that you will need to use in order to achieve the desired solution for Office 2003: http://en.wikipedia.org/wiki/Visual_Studio_Tools_for_Office

     

    There are a few events that can be used in order to achieve this, like the this.Application.WindowDeactivate event, or the DocumentSelection event. Using this events, and a keyboard hook (for example), you can activate a timer that after the 5min elapses, closes the document. This would be one way, not saying is the best way :p

     

    Best regards,

    Silviu.


    http://www.rosoftlab.net/
    Friday, July 15, 2011 5:51 AM