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 12 Next »

Introduced in build 4.1.0.1379

Description

Opens the WordWriter template specified by the templateFileName parameter.

C#
vb.net

Parameters

template
The current WordTemplate that is calling Open
docLib
SharePoint Document Library containing the template file to be opened
fileName
File name of the template Word file

Exceptions

ArgumentNullException
FileNotFoundException

Remarks

A WordWriter template is a file created in Microsoft Word that contains merge fields. WordWriter supports Microsoft Word 97, 2000, 2002 (XP), 2003, and 2007. Do not use Open to open files created in earlier versions of Microsoft Word.

Icon

This is an extension method for the WordTemplate 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