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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. error occure when using word template

error occure when using word template

Scheduled Pinned Locked Moved Visual Basic
helpcsharpasp-netvisual-studiocom
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.
  • O Offline
    O Offline
    OTAsh
    wrote on last edited by
    #1

    I have a problem in my desktop application. I am using VS.NET 1.1. I am using Word template to display the data. I have already include the reference of Interop.Word.dll, AxInterop.MSMask.dll, Interop.VBIDE.dll, Interop.Microsoft.Office.Core.dll, Interop.MSMask.dll in our application. When I click on the option it throw the following error: System.NullReferenceException: Object reference not set to an instance of an object. at Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform) at iMSW.frmMain.openTemplateFile(String fileName) in D:\Project\Astin\iMSW_Prj\Forms\frmMain.vb:line 1257 This error is occur when user is using the MSOFFICE 2000. But if user is using the MSOFFICE 2003 it’s working fine. Please help me. OTAsh

    V 1 Reply Last reply
    0
    • O OTAsh

      I have a problem in my desktop application. I am using VS.NET 1.1. I am using Word template to display the data. I have already include the reference of Interop.Word.dll, AxInterop.MSMask.dll, Interop.VBIDE.dll, Interop.Microsoft.Office.Core.dll, Interop.MSMask.dll in our application. When I click on the option it throw the following error: System.NullReferenceException: Object reference not set to an instance of an object. at Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform) at iMSW.frmMain.openTemplateFile(String fileName) in D:\Project\Astin\iMSW_Prj\Forms\frmMain.vb:line 1257 This error is occur when user is using the MSOFFICE 2000. But if user is using the MSOFFICE 2003 it’s working fine. Please help me. OTAsh

      V Offline
      V Offline
      VB Prog
      wrote on last edited by
      #2

      I bet the reference you have set points to Office 2003 and not Office 2000. Try including a reference to Microsoft Word 9.0 let me know if this helps.

      VB Prog

      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