demoti
Apr 27th, 2004, 09:10 AM
I'm trying to open word from a asp.net-page.
Private Sub ImageButtonWord_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButtonWord.Click
Dim aWordApp As Word.ApplicationClass
Dim aWordDoc As Word.Document
aWordApp = New Word.ApplicationClass()
aWordDoc = New Word.Document()
aWordApp.Visible = True
aWordApp.ShowMe()
aWordDoc.Activate()
End Sub
there are no errors, but word (2000) does not open as expected. i know these commands would be enough to make it work in VB...
any idea's?
Private Sub ImageButtonWord_Click(ByVal sender As System.Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButtonWord.Click
Dim aWordApp As Word.ApplicationClass
Dim aWordDoc As Word.Document
aWordApp = New Word.ApplicationClass()
aWordDoc = New Word.Document()
aWordApp.Visible = True
aWordApp.ShowMe()
aWordDoc.Activate()
End Sub
there are no errors, but word (2000) does not open as expected. i know these commands would be enough to make it work in VB...
any idea's?