Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sharepoint connection and interaction

Status
Not open for further replies.

lalberti

Programmer
Nov 14, 2000
100
IT
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top