Dim WrdApp As New Microsoft.Office.Interop.Word.Application
Sample
Imports Microsoft.Office.Interop.Word
Public Class AspNetConnectWord
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim WrdApp As Microsoft.Office.Interop.Word.Application
Try
WrdApp = New Microsoft.Office.Interop.Word.Application
Me.lblText.Text = "Connect to Word.Application"
Catch ex As Exception
Me.lblText.Text = "Can Not Connect to Word.Application = " & ex.Message
End Try
WrdApp.Application.Quit()
WrdApp = Nothing
End Sub
End Class