SharePoint Use Cases

13 Oct, 2008

Office 2003 and 2007 Office documents from a document library opens as read-only in Internet Explorer

Posted by: Toni Frankola In: SharePoint  Bookmark and Share

If you decide to link a document from a document library using some of the built in SharePoint links web parts, you will encounter a strange behavior of Office clients. Your document will be opened as read-only and you will not be able to save it.

There is an KB article which describes how you could modify registry in order to avoid that.

However, I prefer my own simple solution. In order to use it, you will need to know a little bit of HTML and that’s it.

Instead of links web part you should use Content Editor Web Part and create a link like this one:

<A HREF=”[%DOCUMENT_URL_HERE%]” onclick=”return DispEx(this,event,’TRUE’,'FALSE’,'FALSE’,'SharePoint.OpenDocuments.3′,’0′, ‘SharePoint.OpenDocuments’,”,”,”,’30′,’0′,’0′,’0x7fffffffffffffff’)”>Document name here</a>

The key difference here is the DispEx function which will be called when someone clicks this link. The document will be opened in the appropriate Office client application and you will be able to edit it.



Documentation Toolkit for SharePoint

Comments

1 | Ben McMann

January 15th, 2009 at 4:05 pm

Avatar

The other solution to this is for the end user to do the following on their computer…

Start Windows Explorer (Start, Run, Explorer)
From the Tools menu, select Folder Options
Select the File Types tab
Select the file type that you don’t want to open in IE and click Advanced
Clear the “Browse in same window” check box and click OK
close the Folder Options dialog box

2 | N. Janssen

January 20th, 2010 at 7:09 am

Avatar

Hi,

This option only works when linking to documents inside the site that the Content Editor webpart is located. It will not work for links to other SharePoint sites.

Comment Form


About

Real-life use case and opinions about collaboration, CRM and web technologies and stuff by Toni Frankola. More...

Toni Frankola - SharePoint MVP Profile

All postings on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer.

Page optimized by WP Minify WordPress Plugin