VB.NET and WORD
-
Hello everybody. I am trying to open a WORD document from VB.NET. Just one day ago it was working ok. Now i get the following: QueryInterface for interface Word._Application failed. at Word.ApplicationClass.set_Visible(Boolean prop) when i am trying to open the word document. I have a reference to Word 8.0, and when I tryed to change it to reference a Word 11.0 (Office 2003) after the debug it wasn't working. I even restored my backup file with the word 8 reference and again i get the same error. I deleted the whole directory that i had the program on and restored from back up and nothing. I tryed in a WIn98 machine with Office 2002 and worked OK. What the heck is going on? Any help please. I am attaching my set of commands. /=============================================== Dim i As Integer Dim oWord As Word.ApplicationClass oWord = CreateObject("Word.Application") oWord.Visible = True oWord.Documents.Open(Application.StartupPath & "\stecr1.doc") //=========================================== Still trying to find the way
-
Hello everybody. I am trying to open a WORD document from VB.NET. Just one day ago it was working ok. Now i get the following: QueryInterface for interface Word._Application failed. at Word.ApplicationClass.set_Visible(Boolean prop) when i am trying to open the word document. I have a reference to Word 8.0, and when I tryed to change it to reference a Word 11.0 (Office 2003) after the debug it wasn't working. I even restored my backup file with the word 8 reference and again i get the same error. I deleted the whole directory that i had the program on and restored from back up and nothing. I tryed in a WIn98 machine with Office 2002 and worked OK. What the heck is going on? Any help please. I am attaching my set of commands. /=============================================== Dim i As Integer Dim oWord As Word.ApplicationClass oWord = CreateObject("Word.Application") oWord.Visible = True oWord.Documents.Open(Application.StartupPath & "\stecr1.doc") //=========================================== Still trying to find the way