Wednesday, June 15, 2011

Open Word document in vb.net( desktop application )

Place your doc file under bin/debug/

Paste the following code

Dim objword As Object
objword = CreateObject("Word.Application")
objword.Visible = True
objword.Documents.Open(Application.StartupPath + "/help.doc")

No comments:

Post a Comment