About Me · Send mail to the author(s) E-mail · Twitter

At GROSSWEBER we practice what we preach. We offer trainings for modern software technologies like Behavior Driven Development, Clean Code and Git. Our staff is fluent in a variety of languages, including English.

Feed Icon


Open Source Projects


Blogs of friends

Now playing [?]

Error retrieving information from external service.

Office 2007 File Icons for Windows SharePoint Services 2.0 and SharePoint Portal Server 2003

Posted in IIS | Office | SharePoint at Saturday, 16 December 2006 20:30 W. Europe Standard Time

As you probably know some applications of the 2007 Office System introduce new file extensions. Word 2007, Excel 2007 and PowerPoint 2007 save their data in a new XML-based format by default. To distinguish between the old (binary) and new (XML) file formats Microsoft has created some four-letter file extensions like docx for Word documents. The XML files are stored in a zip container, if you rename such files to have a zip extension, you can peek inside them with WinZip and other zip-aware tools.

If you upload documents created with the 2007 Office System to your WSS 2.0/SharePoint 2003 server you will see that the file icon in front of the file name is missing. This is because those versions of SharePoint essentially are not aware of the new file types. You'll have to register the new file types with SharePoint and provide icons for them.

    The archive contains 16x16 icons in 32-bits color-depth for all new file types. You'll also find five subfolders with the icons saved in the GIF, JPEG and PNG formats (GIF and JPEG with light and dark backgrounds for transparency). The Photoshop Automation.jsx script can be used to create all five images on the fly using Photoshop's scripting functionality - be sure to install the Photoshop ICO plugin first.
    If you want to extract other icons, these are embedded resources of the executables inside the C:\WINDOWS\Installer\{90120000-0030-0000-0000-0000000FF1CE}\ folder.
  2. Choose an image format appropriate to your SharePoint style – I went with the images from the gif-light folder as these suit the default SharePoint theme.
  3. Copy the images to the C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\IMAGES\ folder on your SharePoint server.
  4. Open the C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\XML\docicon.xml file with an editor. Add the following lines under the ByExtension element. Be sure to change the file extension (Value attribute) based on the image format you chose.
    <Mapping Key="docx" Value="docx.gif" EditText="Microsoft Office Word" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="docm" Value="docm.gif" EditText="Microsoft Office Word" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="dotx" Value="dotx.gif" EditText="Microsoft Office Word" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="dotm" Value="dotm.gif" EditText="Microsoft Office Word" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="xlsx" Value="xlsx.gif" EditText="Microsoft Office Excel" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="xlsm" Value="xlsm.gif" EditText="Microsoft Office Excel" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="xltx" Value="xltx.gif" EditText="Microsoft Office Excel" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="xltm" Value="xltm.gif" EditText="Microsoft Office Excel" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="xlsb" Value="xlsb.gif" EditText="Microsoft Office Excel" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="xlam" Value="xlam.gif" EditText="Microsoft Office Excel" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="pptx" Value="pptx.gif" EditText="Microsoft Office PowerPoint" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="pptm" Value="pptm.gif" EditText="Microsoft Office PowerPoint" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="potx" Value="potx.gif" EditText="Microsoft Office PowerPoint" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="potm" Value="potm.gif" EditText="Microsoft Office PowerPoint" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="ppam" Value="ppam.gif" EditText="Microsoft Office PowerPoint" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="ppsx" Value="ppsx.gif" EditText="Microsoft Office PowerPoint" OpenControl="SharePoint.OpenDocuments"/>
    <Mapping Key="ppsm" Value="ppsm.gif" EditText="Microsoft Office PowerPoint" OpenControl="SharePoint.OpenDocuments"/>
  5. Reset IIS by running iisreset.exe.
  6. You can test if the new icons work if you download this zip with sample documents. Upload the files to a document library. If everything worked, you should see something like this:
    Office 2007 sample documents with icons in SharePoint

The next step would be to let SharePoint index the new file types making them searchable. Unfortunately there are publicly available IFilters available yet. Even the new Windows Desktop Search 3.0 doesn't crawl docx and the like. Update: It appears there's a configuration issue with Windows Desktop Search on my machine as WDS just does not crawl my documents folder.

Another Update: A reader asked why documents of the Office 2007 flavor are handled differently by SharePoint. Instead of opening a docx in Word when you left-click the document's name, the browser shows a download dialog. Old-style doc files will be opened instantly by Word (assuming you're using Internet Explorer and have the SharePoint collaboration components installed).

Currently I have no idea how to make the new file types handled the same as the old files. After all, I'm no SharePoint expert. A workaround for this issue is to click the triangle on the right to the document name and choose "Edit in Microsoft Word" from the drop down list of actions.

Another thing that may help is adding the MIME types for Office 2007 documents in IIS. Without them, SharePoint serves 2007-style file types with the "application/octet-stream" generic content-type. The easiest way to do this is stopping IIS and editing the metabase XML file (C:\WINDOWS\system32\inetsrv\MetaBase.xml) using a text editor. Search for the <IIsMimeMap Location="/LM/MimeMap" …> element and append these lines to the MimeMap attribute:


Be sure to add one MIME type per line. This will make the MIME types globally available on the server. After saving the metabase file, restart IIS.

Now Playing [?]: Zoot Woman – It's automatic

Friday, 23 February 2007 12:17:17 (W. Europe Standard Time, UTC+01:00)

Does anyone has an idea regarding the indexing of Office 2007 files in SharePoint 2003? In Google, I can't find any answer to this. Are there any IFilters out there that can be installed on SharePoint 2003 and that enable the indexing of Office 2007 files?

Best regards,
Friday, 23 February 2007 14:35:59 (W. Europe Standard Time, UTC+01:00)
You could try installing Windows Desktop Search on the server and see if the Office 2007 IFilters could be used by SharePoint 2003. A great tool for debugging IFilter issues is the IFilter Explorer.

Please let me know if it worked.
Friday, 25 May 2007 04:19:40 (W. Europe Daylight Time, UTC+02:00)
Have you had any problems with office 2007 and saving meta data?

In particular, we run SharePoint 2003, a docuument library with extra columns.

If I create a new document (from the template) under word, save the document in 2003 (.doc extension), I'm prompted for the extra meta data and its persited back to SharePoint, and this works fine.

Problems arise when I save the document in 2007 (.docx extension) format, none of the meta data is populated back to SharePoint.

Any help would be greatly appreciated.

Friday, 25 May 2007 09:11:30 (W. Europe Daylight Time, UTC+02:00)
Andrew, I'm sorry but I don't run SPS 2003 any more (I upgraded my site to WSS 2007) and thus haven't run into the issues your describe. I suggest you to post your problem in a SharePoint newsgroup/mailing list or contact Microsoft Product Support directly.
Tuesday, 07 August 2007 19:41:29 (W. Europe Daylight Time, UTC+02:00)
Thank you for the well-written article! I was able to update our SP2003 farm very quickly, and the users that are testing Office 2007 on the portal will be pleased.
Wednesday, 08 August 2007 20:35:22 (W. Europe Daylight Time, UTC+02:00)
Check out this Microsoft article that describes how to get the "Edit in Microsoft Office ...." option to function correctly with 2007 documents:

Wednesday, 08 August 2007 21:13:12 (W. Europe Daylight Time, UTC+02:00)
Thanks, Daniel. The whole problem has become a non-issue for me as I'm working on WSS 3.0/MOSS 2007 exclusively by now. I'm glad to see that Microsoft has published a KB article providing the nitty gritty details those of you who still work with WSS 2.0/SPS 2003.
Tuesday, 04 September 2007 00:29:22 (W. Europe Daylight Time, UTC+02:00)

The vast worldwide deployment of SBS insures that quite a lot of businesses will be stuck on WSS 2.0 until the next, Cougar, release of SBS 2008. As such this information is not inconsequential at all; SharePoint is at the heart of SBS. In fact it will open up further reasons to embrace the emerging SharePoint technologies rather than reject them. This one year transition From non-easy side-by-side (or extra server - not inconsequential for many small businesses) WSS 3.0 integration to SBS 2008 native out-of-box functionality can either alienate users to adopting the benefits of this 3.0 technology or provide a seemsless bridge (ideally). Your blog posting has helped quite a lot actually.

It is amazing how many businesses are still being guided to use Public Folders in Exchange though their life cycle has already been publicly-lifespan-limited to this generation of Exchange 2007. With customers moving to Office 2007 it is a natural that we need this integration. Thank you very much for sharing what information you have learned publicly. I hope someone will be able to further carry it to answer the lingering esential question such as why an older file types, such as a .PPS slideshow, doesn't properly open in the web browers of a person clicking on this WSS 2.0 hosted file while from an Office 2007 platform (XP or Vista regardless). Many intructional .PPS demos are languished to user complex obscurity abondonment (more than two clicks) until this is answered.
Tuesday, 30 October 2007 16:15:59 (W. Europe Standard Time, UTC+01:00)
My icons are missing under library documents, but not when you do a search. Is there a way of fixing that. Running MOSS 2007 64-bit.
Tuesday, 30 October 2007 16:48:56 (W. Europe Standard Time, UTC+01:00)

MOSS 2007 should not need the icons (same with WSS 3.0) - they're built-in. Did you remove the icon column in the default view of your document library?

Thursday, 14 February 2008 22:53:01 (W. Europe Standard Time, UTC+01:00)
Just FYI, when you load in the icons of your choice onto your SharePoint server, be sure to enable permissions inheritance for all of the new files. This is due to the fact that if you copy the files then they retain their original permissions and do not inherit from their new location, whereas if you move the files they will by default inherit the permissions of their new location. This seems trivial, but it will cause the authentication dialog box to pop up and the red "X" icon to be displayed for all Office 2007 files in SharePoint. Providing your authentication credentials will not clear it up, and users will not be able to actually do anything with the documents other than open then in read-only mode. Obviously this is very frustrating for users, as it defeats the purpose of using SharePoint as a collaboration platform.

Anyways, resetting the permissions of the new icon files to inherit after importing them will clear all of this up immediately. Hopefully this saves someone from the weeks of nagging headaches this caused us!
Tuesday, 26 February 2008 14:16:29 (W. Europe Standard Time, UTC+01:00)
With regard to adding the MIME types to IIS 6.0, I suggest using the IIS Manager snap-in because you don't have to stop and start IIS for the changes to take effect.

It's a non-issue in Server 2008 but there are many people who will still be on Server 2003 for quite some time and will need to make these changes.
Saturday, 26 April 2008 12:10:56 (W. Europe Daylight Time, UTC+02:00)
Many Thanks for this article, great stuff!
Tuesday, 20 May 2008 17:13:08 (W. Europe Daylight Time, UTC+02:00)
Great, you published the icons and the tutorial. I will go and try it out on our server tonight.
IFilters for Office 2007 can be downloaded from ""
Text from the MS Website: This download will install and register IFilters with the Windows Indexing Service. These IFilters are used by Microsoft Search products to index the contents of specific document formats. This Filter Pack includes IFilters for the following formats: .docx, .docm, .pptx, .pptm, .xlsx, .xlsm, .xlsb, .zip, .one, .vdx, .vsd, .vss, .vst, .vdx, .vsx, and .vtx.
Friday, 23 May 2008 06:30:18 (W. Europe Daylight Time, UTC+02:00)
Hi Alex,

Just wanted to say thanks - these instructions came in very handy and I was able to integrate Office 2007 file types into our Sharepoint site very quickly.

Monday, 02 June 2008 07:07:17 (W. Europe Daylight Time, UTC+02:00)

none of the icons of files are display when i perform search
but when i upload the document of any files the icons is been display

can any 1 help me in this i really need the solution urgently

Please help me ....
Sunday, 17 August 2008 05:54:51 (W. Europe Daylight Time, UTC+02:00)
Great post, helped me a lot!
Monday, 18 August 2008 18:07:26 (W. Europe Daylight Time, UTC+02:00)
Thank you, this worked great.
Monday, 08 September 2008 16:20:33 (W. Europe Daylight Time, UTC+02:00)
Well I'm running MOSS 2007 64 bit and it doesn't have icons for nor "edit in" on the drop down menu for Office 2007 files either.

What a great product!
Saturday, 13 December 2008 04:12:11 (W. Europe Standard Time, UTC+01:00)
I am running Sharepoint Services 2.0 on Windows 2003. In order to support Office 2007 file types, I have installed the Microsoft Filter Pack which came with KB 119591 and have also made the changes to the DOCICON.XML and HTMLTRANSLATE.XML files under the Web Server Extensions/60/Templates/XML folder.

I now can see the icon for .docx, .xlsx and .pptx files. However, when I try to Select the "Edit in Microsoft <ProgramName>" option on the menu in Sharepoint, I get a message box which first says "File Conversion in Progress..." and then errors out by saying "The converter failed to save the file" and the document does not open.

Do you have any ideas why this might be happening? Any suggestions?

Thanks very much,
Thursday, 01 January 2009 07:40:52 (W. Europe Standard Time, UTC+01:00)
Is there any documentation available for Filter Pack 2007? I need to know what all properties are supported by each IFilter in Filter Pack 2007.
Wednesday, 04 February 2009 13:19:35 (W. Europe Standard Time, UTC+01:00)
Having a MOSS2003 and using Office2003 with Office2007 Compatibility Pack.
After applying your solution, i'm now able to open the documents with O2007 extension but using the "edit with Microsoft ....." doesn't work, instead of opening the O2007 document by converting it first, it just trys to open it with O2003 leading to a scrambled doc.

Is there a way of pointing this right?

I already tried "EditText="Microsoft Open XML Converter"" but to no veil.

Thx for your 5cent

Monday, 16 February 2009 03:54:50 (W. Europe Standard Time, UTC+01:00)
Thank you for your set of Office 2007 icons.
They help me a lot.
Tuesday, 17 March 2009 18:38:31 (W. Europe Standard Time, UTC+01:00)
Excellent post. It really helped me out with a question I found confusing. Thanks for sharing your knowledge. Both suggsetions were exactly what I needed. I'll be sure to check this site next time I have questions.
Tuesday, 21 July 2009 10:18:57 (W. Europe Daylight Time, UTC+02:00)
John suggested using the IIS snap in to edit the MIME types. That entry method requires putting in every mime type separately. The two methods can be melded to create an even easier method which also doesn't require IIS restart. Enable "Live Editing" of the Metabase.XML by going to computer properties in the IIS manager. Then edit the Metabase.XML in Notepad as Alexander initially suggests. When you save the Metabase.XML your mime changes go into effect immediately. Make sure to change the the live edit setting back when you are done because this probably makes it reload the file much more often and you dont want any accidents to occur. You probably should make a backup of the Metabase.XML before you start, but that is true anytime you are doing back end direct file editing.
Monday, 19 October 2009 21:06:06 (W. Europe Daylight Time, UTC+02:00)
If you are getting the "The converter failed to save the file" message when trying to edit an office document when you have office 07 installed out of sharepoint, chances are that you still have the office 2007 compatibility pack still installed. uninstall it, reboot, do a repair on your office 2007 installation, reboot again, and that should fix your wagon.
Nick Burns Guy
Friday, 23 October 2009 18:26:33 (W. Europe Daylight Time, UTC+02:00)
Dude... I love you for this post! Worked like a charm. I knew there was a way, and your great tuturoial really opens up any document format and MIME redirection. Thank god for this tutorial, I'm really unsure if the issue came from having a Sharepoint Server update happen via Windows Update, or if it was from my Windows 7 installation on my new PC, but long story short, it works like it should and I thank you for that!
Friday, 05 November 2010 10:57:00 (W. Europe Standard Time, UTC+01:00)
Thanks so much for this article.
All comments require the approval of the site owner before being displayed.
(will show your gravatar icon)
[Captcha]Enter the code shown (prevents robots):

Live Comment Preview