In a Document Library, when you create a new document using the New button (or edit one that already exists), SharePoint will open the proper client application (if it knows which one it is) for you to edit the file. If you have an event handler attached
Read More...