Opening a MS Word document from ASP
Hi. I'm wondering how to open up MS word on the client machine & pass variables from the ASPX page over to a template document.
I tried to open Word with:
Dim objWord As Object
Dim strMuniCertLocation As String = "http://localhost/docs/Municipal Certification Letter.doc"
objWord = CreateObject("Word.Application")
objWord.Visible = true
But I received the error "System.Exception: Cannot create ActiveX component."
Any ideas how I should structure this process? Can I call MS Word on the client side from an ASPX page and pass variables to it?
Can this only be done in VBScript? I ran a test with some VBScript and was able to open MS Word from the page. If so, can I pass variables from the ASPX page to the opened MS Word documents through VBScript?
Thanks. Any advice would be appreciated.