Daily Archives: February 3, 2011

Building Hyperlinks To Open Documents in Edit Mode

Often when building an application that links to files stored in SharePoint you run into the problem of getting the file (doc, xls, ppt, etc…) to open in edit mode.  By default when you create a hyperlink to a document SharePoint will just get the file and stream it’s contents through the browser to your machine.  The file will open in the application associated with the file type/format on your pc.  In the case of the Office formats (Word, Excel, PowerPoint, etc…) the application will open the file in a read only mode.  To get the file to open in edit mode we have to make sure that we use the same Javascript to ActiveX calls that SharePoint uses to invoke the correct Office application.    There are various ways to do this but in a recent project we achieved the desired result by doing the following:

Posted in Development, Development, SharePoint 2007, SharePoint 2010 | 12 Comments