Visual Studio Development Bookmark and Share   
 index > Visual Studio Tools for Office > How to open a Word Document and read some values?
 

How to open a Word Document and read some values?

Hi,

i have already developed a word addin which works fine. It uses the globals.thisaddin.application.activedocument object to use the already opened document.
What i now want to do is, to open a second document out of my addin in the background and read some values.

How can i do that???
bcinc.  Saturday, October 17, 2009 2:12 PM
Hi bcinc.!

Use the Word.Documents.Open() method and set the Visible parameter to false:



object visible = false;
Globals.ThisAddIn.Application.Documents.Open(..., ref visible, ...);

Jose Anton Bautista  Saturday, October 17, 2009 3:14 PM

You can use google to search for other answers

Custom Search

More Threads

• Outlook COM Shim to run Managed Addin Code
• Custom Popup menu in PowerPoint 2007
• Mailitem - Incoming or Outgoing?
• Visual Basic 2005 and MSWord Rule Bar
• Load Word Addin Problem - Is it a VSTO issue or SharePoint?
• Very beginner need help to start (word 2003)
• Visio 2003 : Save as web page bug
• Trouble with Addresslists
• How to make StartFromScratch=true in a Word 2007 Template work?
• Calculate Event and Changes in Range