Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB.NET and WORD

VB.NET and WORD

Scheduled Pinned Locked Moved Visual Basic
helpcsharpdebuggingquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chaos Machine
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • C Chaos Machine

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try to check the information from here[^].


      A thousand mile of journey, begin with the first step. APO-CEDC Save Children Norway-Cambodia Office

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups