Here is the code causing the error.
An unhandled exception of type 'System.NullReferenceException' occurred in ClientApp.exe
Code:Private Sub btnCreateWordDoc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCreateWordDoc.Click Dim WordApp As Word.Application WordApp = New Word.Application WordApp.Visible = True Dim myDoc As Word.Document WordApp.Documents.Add("C:\.netprojects\remoting\ClientApp\template.doc") myDoc.Bookmarks.Item("bookmark").Range.Text = "test1" WordApp.Quit(True) End Sub
?????




Reply With Quote