I need to develop an office add-in to perform interaction with a Sharepoint
Server.
What I need is programmatically connect to the sharepoint site and upload
documents and data.
Where can I find informations, resources and code samples about it?
At the moment I tried to do it with the code listed below but I receive a
COM Exception (system.runtime.interopservices(COMException)).
imports Microsoft.SharePoint
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim url As String = "
Try
Dim s As New SPSite(url)
MsgBox(s.Url)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
Server.
What I need is programmatically connect to the sharepoint site and upload
documents and data.
Where can I find informations, resources and code samples about it?
At the moment I tried to do it with the code listed below but I receive a
COM Exception (system.runtime.interopservices(COMException)).
imports Microsoft.SharePoint
Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim url As String = "
Try
Dim s As New SPSite(url)
MsgBox(s.Url)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class