Page tree
Skip to end of metadata
Go to start of metadata

Introduced in build 4.1.0.1379

Description

Opens and returns an existing Document from a SharePoint Document Library.

C#
vb.net

Parameters

wordApplication
The current WordApplication object which is calling Open
docLib
SharePoint Document Library from which the file is being opened
fileName
Filename of the document to open from the Document Library

Returns

The document that is opened from the Document Library.

Exceptions

System.Exception
Thrown if an error occurs while opening the document.

Remarks

Though the WordTemplate object currently supports Office Open XML (Word 2007) format files, WordApplication.Open() does not yet support them.

Icon

This is an extension method for the WordApplication object to be used for opening documents from a SharePoint Document Library from within SharePoint. To use this method, you must add a reference to SoftArtisans.OfficeWriter.WordWriter.SharePointIntegration.dll

Examples

C#
vb.net
  • No labels