open word document and insert data
Hello there,
Its been 2 days that i'm trying to open a word document from an aspx page. The code i use is shown below:
'************************************************* *********
Imports WordApp = Microsoft.Office.Interop.Word
Protected Sub openWord(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim WordApp As New Word.Application
WordApp.Visible = True
WordApp.Documents.Add()
End Sub
'************************************************* *******
This code runs the winword.exe as a process (i can see it in task manager) but i never get word on my screen.I've imported Microsoft.Office.Interop.Word assemmbly, i've tried using impersonation or the ASPNET account but neither worked.I have given access permissions to all users on winword.exe and I've added the ASPNET account on the Word.Document COM using the DCOMCNFG tool.
Am I missing something here????
Any ideas provided would be helpful
Kostas Lagos
|