To open ms word file using vb.net 2.0 in windows application
Add reference microsoft.word 12.o object from com tab.
If (System.IO.File.Exists(txtBrowse.Text)) Then
Dim test As Microsoft.Office.Interop.Word.Application
test = New Microsoft.Office.Interop.Word.Application
test.Documents.Open(txtBrowse.Text)
test.OpenAttachmentsInFullScreen = True
test.Visible = True
End If
No comments:
Post a Comment