DocIcon.xml – Adding Notepad and WordPerfect as applications
I recently had a client ask me why they could not save txt files that were stored in a document library back to the site. I don't typically use txt files so I asked them to show me by creating a new txt file and uploading it to the site, then clicking on it in the document library list. The file opened in IE (web browser) not notepad. My reflex told me that all we had to do was add notepad.exe as an application type in the DOCICON.xml file stored in C:Program FilesCommon FilesMicrosoft Sharedweb server extensions60TEMPLATEXML.
I went back to my office, an played around with it for a while to see if I could change the entry for txt.
First I tried:
<Mapping Key="txt" Value="ictxt.gif" EditText="Notepad" OpenControl="SharePoint.OpenDocuments"/>
That didn't work
Then I tried
<Mapping Key="txt" Value="ictxt.gif" EditText="Microsoft Office Word" OpenControl="SharePoint.OpenDocuments"/>
Which creashed my IE.
Then I did some research and found out that the SharePoint.OpenDocuments command only supports openning MS documents by executing the ActiveX that is installed as part of MS Office. There isn't much documentation on it. Here is thread that describes the problem and challenges.
http://www.codecomments.com/message376491.html
Here is the MSDN article that eludes to how to solve it, however it is vague at best.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsptAddingDocumentTypeIcon_SV01068572.asp
So for now, unless I look into where the WordPerfect activeX is that controls this behaviour, I won't be able to do this unless I write my own activeX and have it install on client machines.

This entry was posted
on Thursday, March 16th, 2006 at 4:13 pm and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
DocIcon.xml – Adding Notepad and WordPerfect as applications
I recently had a client ask me why they could not save txt files that were stored in a document library back to the site. I don't typically use txt files so I asked them to show me by creating a new txt file and uploading it to the site, then clicking on it in the document library list. The file opened in IE (web browser) not notepad. My reflex told me that all we had to do was add notepad.exe as an application type in the DOCICON.xml file stored in C:Program FilesCommon FilesMicrosoft Sharedweb server extensions60TEMPLATEXML.
I went back to my office, an played around with it for a while to see if I could change the entry for txt.
First I tried:
<Mapping Key="txt" Value="ictxt.gif" EditText="Notepad" OpenControl="SharePoint.OpenDocuments"/>
That didn't work
Then I tried
<Mapping Key="txt" Value="ictxt.gif" EditText="Microsoft Office Word" OpenControl="SharePoint.OpenDocuments"/>
Which creashed my IE.
Then I did some research and found out that the SharePoint.OpenDocuments command only supports openning MS documents by executing the ActiveX that is installed as part of MS Office. There isn't much documentation on it. Here is thread that describes the problem and challenges.
http://www.codecomments.com/message376491.html
Here is the MSDN article that eludes to how to solve it, however it is vague at best.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsptAddingDocumentTypeIcon_SV01068572.asp
So for now, unless I look into where the WordPerfect activeX is that controls this behaviour, I won't be able to do this unless I write my own activeX and have it install on client machines.

This entry was posted
on Thursday, March 16th, 2006 at 4:13 pm and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.