gibea00
January 30th, 2003, 09:37 AM
Hi
I want to open a word document using vb net. All works find when i'm not usins Option Explicit on and
Option Strict On.
here's my code
Dim objwrd As Object
objwrd = CreateObject("Word.application")
objwrd.application.Visible = True
objwrd.Documents.open("E:\VbNet\test.doc")
The last two lines are in error if these two option are ON . Why? Is anyboby can help me with this?
Thank you
I want to open a word document using vb net. All works find when i'm not usins Option Explicit on and
Option Strict On.
here's my code
Dim objwrd As Object
objwrd = CreateObject("Word.application")
objwrd.application.Visible = True
objwrd.Documents.open("E:\VbNet\test.doc")
The last two lines are in error if these two option are ON . Why? Is anyboby can help me with this?
Thank you