Skip to end of metadata
Go to start of metadata

Introduced in build 4.1.0.1379

Description

Saves the generated Word file to a SharePoint Document Library.

C#
vb.net

Parameters

template
The current WordTemplate object that is being saved to file
docLib
SharePoint document library to which the file is being saved
fileName
Name of the file to be saved
overwrite
If set to true, will overwrite any files in the Document Library by that name

Exceptions

ArgumentNullException
Save will throw this exception if null (C#) or Nothing (VB.NET) is passed to the method.

Remarks

You can call Save more than once for a single instance of WordTemplate. This allows you to save more than one copy of a generated file, and/or both save the file on the server and stream it to the client.

Icon

This is an extension method for the WordTemplate object to be used for saving documents to 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