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!

  • 1
    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 blogs.msdn.com/b/malag/archive/2010/05/13/… – 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


gacutil -i mydll.dll

A reboot!

Problem solved!

  • 1
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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