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

Version 1 Next »

Introduced in build 4.1.0.1379

Description

Writes a Document to a file and saves it to a SharePoint Document Library.

C#
vb.net

Parameters

wordApplication
The current WordApplication object from which Save is being called
document
The Document to save.
docLib
The SharePoint Document Library to which the file will be saved
fileName
Filename of the Document
overwrite
If true, will overwrite an existing file of the same name in the Document Library

Exceptions

System.Exception
Thrown if there is an error saving the file.

Remarks

The WordApplication.Preserve property is used to specify the way WordWriter will save the document. When the preserve property is set to true, WordWriter attempts to preserve all formatting and features that it doesn't directly support. This includes Fields, Footnotes, Hyperlinks, Comments, and Anchored Images. When the preserve property is false, only those features directly supported by WordWriter will be preserved. This includes all Tables, Lists, Headers and Footers.

Icon

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