Export (0) Print
Expand All

How to: Open Existing Documents

Applies to

The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.

Project type

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • Word 2003

  • Word 2007

For more information, see Features Available by Application and Project Type.

The Open(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) method opens the existing Microsoft Office Word document specified by a fully qualified path and file name. This method returns a Document.

To open a document

To open a document as read-only

This code example requires the following:

  • A document named NewDocument.doc must exist in a directory named Test on drive C.

Community Additions

ADD
Show:
© 2014 Microsoft