«

»

Feb 17

Changing File Associations Icons in SharePoint 2010

One of the annoying things I have found using SharePoint 2007 was the inability to upload a PDF file and see a PDF icon next to the file name, this situation has not changed with SharePoint 2010 so I thought I would run through how to add an icon file for PDF and other unsupported file types in SharePoint 2010.

Working in a school you do find a vast array of different software applications being used, as an example we use the entire Abode Creative suite so when a member of staff uploads a fireworks file to SharePoint there appears just a blank icon. So one of the things we have to put on the snagging list for our 2010 rollout is making sure that all the file types we use have an associated icon file appear next to the names in a document library. This is basically the same process as with 2007 apart from some path changes so.

On your SharePoint server navigate to (default install)

“C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES”

And place a 16 x 16 picture file (Gif, Jpg or Png) of the file type you wish to add All the icon files in the images folder have the format ic***.gif so I named my PDF icon icpdf.gif

After you copy the picture file you need navigate to

“C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML”

And edit the DocIcon.xml with notepad and add the line

<Mapping Key=”pdf” Value=”icpdf.gif”/>

Once this is edited and saved (I would also recommend doing a backup of the file before you save it) you will need to do an IISreset before the icon will display.

Also please bear in mind a couple of points if you have more than 1 server in your farm you will need to repeat this procedure on all of your servers and please backup the docicon.xml file and image files away from your servers as they may get overwritten with updates.

Dave

About Dave Coleman

Dave Coleman has written 332 post on this blog.


Technorati Tags: , ,

Related posts:

  1. Create SharePoint 2010 sites using PowerShell reading an XML file Just a quick post to show how easy it is...
  2. SharePoint 2010 Powershell Commands Help Yesterday i did a post The first steps to SharePoint...
  3. Using PowerPoint 2010 themes in SharePoint 2010 In 6 Easy Steps Creating your own theme for SharePoint 2010 used to be...
  4. The first steps to SharePoint 2010 PowerShell Heaven As Chris showed in his post last week Create SharePoint...

18 comments

14 pings

  1. Daniel Keegan

    Nice guide, I’m dying of jealousy to see you getting your hands dirty already.

  2. Dave Coleman

    Thanks Daniel i love 2010 already and plenty more posts to come, just writing one now on Drop folders for Monday.

  3. microtech

    okay i’ll add that up to my SharePoint Training anyway i am still in the process of learning and now there’s the latest version of MOSS the MOSS 2010! ow! anyway thanks for your very comprehensive and informative post. I actually had my first training on http://www.solartechnj.com/sch_microsoft_sharepoint_training_moss.asp and it’s kinda nose-bleeding and heart-stabbing.

  4. school grants

    Great site. A lot of useful information here. I’m sending it to some friends!

  5. Karen

    When I started to read this I was totally excited, however, after following the steps exactly it isn’t working. I am running SP2010 in an 2008r2 environment. I mainly use PDF for most of the documentation, but my company also creates other files with different extensions that I wanted to add as well – neither is working for us. I really want to be able to take care of this. We have restarted the server, IIS, and the crawl multiple times – still nothing. Please let me know if you have more advice with this environment.

  6. Leif Hurst

    did not work for me… made changes to both front end servers and did a IISreset on both.

    gave me red x’s for the pdf icon and the xls icon (?!). Reverted back, IISreset and we’re back to typical.

  7. Dave Coleman

    Hi Leif

    Did you copy the lines from the blog post if so it could be word formatting that is the problem check out http://www.sharepointedutech.com/2010/11/08/when-is-a-quotation-mark-not-the-correct-quotation-mark-in-sharepoint-2010/

    Dave

  8. Bastiaan

    Hi there. If you copy “” straight to your DOCICON.XML file, you’ll notice other quotes are used. You will need to use the ” quote and not the ”. Small difference, but if you use the quotation marks used in the example up here, things won’t work.

  9. Micahel

    Blasted IE copy-paste!!!

    :)

  10. Pat

    I had the quote mark error, but realized it and fixed it. But that didn’t work so I rebooted the servers and now I’m getting a HRESULT: 0×80041054 error. I replaced the edited files with the backed up versions but no dice, same error. This may be a coincidence and it’s really something else (like Symantec). Has anyone else had this problem?

  11. Dave Coleman

    Hi Pat

    I have never seen that happen before.

    Sorry

    Dave

  12. Jane Ratnovsky

    I did everything that you told in your post. Add PDF icon 16X16< change .xml file coping and paste a line and change the name. I reset IIS using IISreset command. But nothing changes in my SharePoint: my .PDFs still have blank icons. I even clear Internet cash. Any suggestions?

  13. Jane Ratnovsky

    I found what was wrong. It works!!!

  14. Michael Saroyan

    It didn’t work for me either at first. I followed this and it worked.
    http://www.sharepointsharon.com/2010/03/sharepoint-2010-and-adobe-pdf/

    M.S

  15. Carlos

    Its Works, Thanks!!!

  16. shover

    Ok, but what you really need to do to do is install a PDF Ifilter. This makes them searchable. the steps aove are part of this process

  17. Dave Coleman

    Very true but this covers all the file types that do not have an icon i.e. fireworks, photoshop etc for an ifilter setup guide see this post http://www.sharepointedutech.com/2010/09/07/setup-guide-for-pdf-ifilter-in-sharepoint-2010/

    Dave

  1. uberVU - social comments

    Social comments and analytics for this post…

    This post was mentioned on Twitter by ibander: RT @davecoleman146: New Blog post “Changing File Associations Icons in SharePoint 2010″ http://bit.ly/bXpbmI #sp2010 #sharepoint2010 Plz RT…

  2. SharePoint and Server 2008 R2 (Better Together) « Chris and Dave's SharePoint And Tech Blog

    [...] and Server 2008 R2 (Better Together) 2 04 2010   A while ago I did a post on adding icons for SharePoint 2010 and MOSS 2007 so that you get icons in document libraries for PDF and other files that do not have file [...]

  3. Opening PDFs in SharePoint 2010 « Chris and Dave's SharePoint And Tech Blog

    [...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that [...]

  4. Opening PDFs in SharePoint 2010 « Chris and Dave's SharePoint And Tech Blog

    [...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that [...]

  5. Öffnen von PDFs im Browser in SharePoint 2010 Umgebungen « Sharepoint Infoblog

    [...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that wrong! Kategorien:Allgemein Kommentare (0) Trackbacks (0) Einen Kommentar [...]

  6. Chris and Daves SharePoint and Tech Blog » Remove the gap between the Icon and Title in SharePoint 2010 document library

    [...] I was at it I also updated the DOCICON.XML and associated images to make the folder icon and a few others more up-to-date. Results [...]

  7. Chris and Daves SharePoint and Tech Blog » Setup Guide for PDF iFilter in SharePoint 2010

    [...]  So through this post I will show how to install and configure the iFilter for PDF, the first step is to make sure the PDF icon shows up  when you upload a PDF file if not how to achieve this is here. [...]

  8. Opening PDFs in SharePoint 2010 « Experience & Solution 410

    [...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that [...]

  9. SharePoint and Server 2008 R2 (Better Together) - SharePointEduTech

    [...] while ago I did a post on adding icons for SharePoint 2010 and MOSS 2007 so that you get icons in document libraries for PDF and other files that do not have file [...]

  10. Opening PDFs in SharePoint 2010 - SharePointEduTech

    [...] may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that [...]

  11. Eugenie

    very helpful…

    I preferred to thank you for this good article. http://nxysm.blogcu.com/framed-scream/10662816 I by all odds liked every little bit of it…

  12. Add a PDF icon to PDF documents in SharePoint 2010 « the REAL seanism

    [...] http://www.sharepointedutech.com/2010/02/17/changing-file-associations-icons-in-sharepoint-2010/ Tagged as: 2010, iis, pdf, sharepoint Leave a comment Comments (0) Trackbacks (0) ( subscribe [...]

  13. Latest Softwares Review and Download

    Softwares Reviews and Downloads…

    I found your entry interesting do I’ve added a Trackback to it on my weblog :) ……

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>