Wednesday, 27 July 2011

Display / Show PDF icon in Sharepoint / MOSS

  1. Copy the .gif file that you want to use for the icon to the following folder on the server, as appropriate for your version of SharePoint:
    SharePoint Portal Server 2003 - Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Images
    SharePoint Server 2007- Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Image
    SharePoint Server 2010 - Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Images
  2. Stop IIS at a command prompt by running IISReset /stop
  3. Edit the Docicon.xml file to include the .pdf extension. To do this, follow these steps:
    1. Start Notepad, and then open the Docicon.xml file. The Docicon.xml file is located in one of the following folders on the server:
      SharePoint Portal Server 2003 - Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\60\Template\Xml
      SharePoint Server 2007- Drive :\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Xml
      SharePoint Server 2010- Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\14\Template\Xml
    2. Add an entry for the .pdf extension. For example, add a line that is similar to the following to the Docicon.xml file, where NameofIconFile is the name of the .gif file:
      <Mapping Key="pdf" Value="NameofIconFile.gif"/>
    3. On the File menu, click Save, and then quit Notepad.
  4. Start IIS at a command prompt by running IISReset /start

No comments:

Post a Comment