Editing a file on a Sharepoint Server with C# -


i trying edit powerpoint file on sharepoint through c#. have direct access directory tried doing if edit ppt file on local system:

// open presentation pptpresentation = pptapplication.presentations.open(@"\\sharepoint.adress.com@ssl\userwwwroot\folder\subfolder\pres.pptx");  // open slide on id has added. pptslide = pptpresentation.slides[slidenumber];  // add textbox shape = pptslide.shapes.addtextbox(msotextorientation.msotextorientationhorizontal, 0, 0, 1, 1);  [...] 

but "access denied" error on first line of code, if logged in , have folder open in window. have open file in special way because it's on sharepoint? there better approach doing this?

what worked copying file local directory , opening editing , copying back. not allowed multiple reasons.

you need login sharepoint. this, can use csom (client sharepoint object model) there lot off documentation on net.

exemples : using sharepoint foundation 2010 managed client object model open xml

using client object model


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -