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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Introduced in build 4.1.0.1379

Description

Opens and returns an existing Document from a SharePoint List Item.

C#
vb.net

Parameters

wordApplication
The current WordApplication object which is calling Open
listItem
SharePoint List Item from which the file is being opened
fileName
Filename of the document to open from the List Item

Returns

The document that is opened from the List Item.

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 List Item from within SharePoint. To use this method, you must add a reference to SoftArtisans.OfficeWriter.WordWriter.SharePointIntegration.dll

Examples

C#
vb.net
  • No labels