Skip to main content
replaced http://sharepoint.stackexchange.com/ with https://sharepoint.stackexchange.com/
Source Link

You can try to use the OpenDocuments control which is shipped with SP.js

HTML example

<a href=""
    onclick="editDocumentWithProgID2('http://server/site/doclib/folder/Document.docx', 
    '', 
    'SharePoint.OpenDocuments', '0', 
    'http://server/site', '0')">
    This will open the file in edit mode
</a>

similar question: editDocumentWithProgID2 in CSOMeditDocumentWithProgID2 in CSOM

You can try to use the OpenDocuments control which is shipped with SP.js

HTML example

<a href=""
    onclick="editDocumentWithProgID2('http://server/site/doclib/folder/Document.docx', 
    '', 
    'SharePoint.OpenDocuments', '0', 
    'http://server/site', '0')">
    This will open the file in edit mode
</a>

similar question: editDocumentWithProgID2 in CSOM

You can try to use the OpenDocuments control which is shipped with SP.js

HTML example

<a href=""
    onclick="editDocumentWithProgID2('http://server/site/doclib/folder/Document.docx', 
    '', 
    'SharePoint.OpenDocuments', '0', 
    'http://server/site', '0')">
    This will open the file in edit mode
</a>

similar question: editDocumentWithProgID2 in CSOM

Source Link
Tiago Duarte
  • 5.5k
  • 2
  • 22
  • 44

You can try to use the OpenDocuments control which is shipped with SP.js

HTML example

<a href=""
    onclick="editDocumentWithProgID2('http://server/site/doclib/folder/Document.docx', 
    '', 
    'SharePoint.OpenDocuments', '0', 
    'http://server/site', '0')">
    This will open the file in edit mode
</a>

similar question: editDocumentWithProgID2 in CSOM