Sharique Hussain Ansari
Sharique Hussain Ansari

Reputation: 1456

Open .doc file directly from sharepoint

i want to open .doc file from sharepoint library for editing in C#

my code is

Dim process As Process = New Process()
process.Start("https://somename.sharepoint.com/sites/C1/DocLib/mydoc.doc")

it is opening but i unable to save the document after editing.

How to save the document.

Upvotes: 3

Views: 2418

Answers (1)

lem.mallari
lem.mallari

Reputation: 1275

what you can do is use the office interop for word to open the file, do the editing then save it locally. afterwards, use the Copy web service of sharepoint to overwrite the file in the document library.

links:

Copy method

Word Interop

let me know if you need other references.

Upvotes: 1

Related Questions