SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is something I've been looking into for a while.

We use sharepoint here as well as our own bespoke bit of software that lets you create and edit our own type of documents.

I've written a COM dll, which I've tested with the following code as a vbs script:

Dim obj
set obj = CreateObject("Ctest.SharePoint.OpenDocuments.1")
msgbox obj.EditDocument("c:\mytest.olf", "06FC39A0-2CAA-11D0-B6B7-004095131445")

That works a treat.

I've added our file extension to Sharepoint search/indexing.

If I edit DocIcon.xml with the line:

<Mapping Key="olf" Value="olf.png" EditText="My Application" OpenControl="Ctest.SharePoint.OpenDocuments.1"/>

I get the "The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document." error.

Any idea's on this as I'm not sure what else I can do!

share|improve this question
I don't know if this will help you much, since it is quite an old bookmark, but take a read at Custom OpenDocuments blog post here… – Hugh Wood Nov 20 '12 at 15:22
That was actually my starting point for this project but I can never get sharepoint to acknowledge the other application. – tripbrock Nov 20 '12 at 16:26
Is the control registered on the client machine properly? – Hugh Wood Nov 20 '12 at 16:53
I'll need to check that. Although calling via the vbs script indicates so, i'm sure there's something missing relating it to Sharepoint. – tripbrock Nov 21 '12 at 11:44
If it is erroring in the javascript then it will be the control, if the javascript isn't doing anything on the page, the it isn't registered properly in sharepoint. – Hugh Wood Nov 21 '12 at 11:46
up vote 1 down vote accepted


gacutil -i mydll.dll

A reboot!

Problem solved!

share|improve this answer
You probably didn't need a reboot.. just an iisreset. Also, you should consider deploying this via a solution? – Kit Menke Nov 21 '12 at 16:13
Restarting iis didn't help sadly. I'll deploy it when I'm happy with the the way integration works. It's bare bones at the moment but as long as Sharepoint's talking to my code I'm currently happy... – tripbrock Nov 22 '12 at 9:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.