Wiki Markup |
---|
{introducedin:4.1.0.1379} {description} {excerpt}Opens the WordWriter template specified by the {{templateFileName}} parameter.{excerpt} {signature:C#} public static void Open(this WordTemplate template, Microsoft.SharePoint.SPListItem listItem, String fileName) {signature}{signature:vb.net} Public Static Sub Open(ByVal template As WordTemplate, ByVal listItem As MicroSoft.SharePoint.SPListItem, ByVal fileName As String) {signature} {parameters} {param:template}The current WordTemplate that is calling Open{param} {param:listItem}SharePoint List Item containing the template file to be opened{param} {param:fileName}File name of the template Word file{param} {exceptions} {exception:ArgumentNullException}{exception} {exception:FileNotFoundException}{exception} {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|WordTemplate.Open] to open files created in earlier versions of Microsoft Word. {note}This is an extension method for the WordTemplate 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{note} {remarks} {example}{code:csharp|title=C#} oWW.Open(myListItem, "StringTemplate.doc"); {code} {code:vb.net|title=vb.net} oWW.Open(myListItem, "StringTemplate.doc"){code} {example} |
Page History
Overview
Content Tools