Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Note
iconfalse

SharePointIntegration is only available in WordWriter Enterprise Edition. (WordWriter Editions)

Table of Contents

Table of Contents

...

Wiki Markup
{note:icon=false} *SharePointIntegration* is only available in *WordWriter Enterprise Edition*.  (_[WordWriter Editions]_) {note}

|| Table of Contents ||
| {toc} |

{introducedin:4.1.0.1379

...

Description

Excerpt

The SharePointIntegration class contains the extension methods that allow users to bind SharePoint data sources to Word documents as well as open and save files in SharePoint lists and document libraries.

Signature
C#C#
}

{description}
{excerpt}The SharePointIntegration class contains the extension methods that allow users to bind SharePoint data sources to Word documents as well as open and save files in SharePoint lists and document libraries.
{excerpt}
{signature:C#}
public static class SharePointIntegration
Remarks
The SharePointIntegration class is to be used on a SharePoint server to use the WordTemplate, WordApplication, and Element objects with SharePoint. SharePointIntegration belongs to the
{signature}
{remarks}
The SharePointIntegration class is to be used on a SharePoint server to use the WordTemplate, WordApplication, and Element objects with SharePoint.  SharePointIntegration belongs to the SoftArtisans.OfficeWriter.WordWriter namespace and has the Microsoft.SharePoint class as a dependency.  Additionally, the SharePointIntegration class belongs in a separate DLL, SoftArtisans.OfficeWriter.WordWriter.SharePointIntegration.dll, which must be added to the bin directory of your project.
Example

SharePointIntegration is an abstract class which cannot directly be instantiated, but rather contains extension methods for the WordApplication, WordTemplate, and Element objects. Use SharePointIntegration extensions just as you would the other methods of each object, remembering to add references to the Microsoft.SharePoint namespace.

Methods

...

Name

...

Description

...


{remarks}
{example}
SharePointIntegration is an abstract class which cannot directly be instantiated, but rather contains extension methods for the [WordApplication], [WordTemplate], and [Element] objects.  Use SharePointIntegration extensions just as you would the other methods of each object, remembering to add references to the Microsoft.SharePoint namespace.
{example}
{methods}
|| Name || Description ||
| [ImportData(Element, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, DataBindingProperties)

...

|SharePointIntegration.ImportData(Element, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList,

...

 DataImportProperties)] | {excerpt-include:SharePointIntegration.ImportData(Element, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, DataBindingProperties)

...

|nopanel

...

=true} |
| [ImportData(Element, Microsoft.SharePoint.SPList)

...

|SharePointIntegration.ImportData(Element, Microsoft.SharePoint.SPList)

...

] | {excerpt-include:SharePointIntegration.ImportData(Element, Microsoft.SharePoint.SPList)

...

|nopanel

...

=true} |
| [Open(WordApplication, Microsoft.SharePoint.SPDocumentLibrary, String)

...

|SharePointIntegration.Open(WordApplication, Microsoft.SharePoint.SPDocumentLibrary, String)

...

] | {excerpt-include:SharePointIntegration.Open(WordApplication, Microsoft.SharePoint.SPDocumentLibrary, String)

...

|nopanel

...

=true} |
| [Open(WordApplication, Microsoft.SharePoint.SPListItem, String)

...

|SharePointIntegration.Open(WordApplication, Microsoft.SharePoint.SPListItem, String)

...

] | {excerpt-include:SharePointIntegration.Open(WordApplication, Microsoft.SharePoint.SPListItem, String)

...

|nopanel

...

=true} |
| [Open(WordTemplate, Microsoft.SharePoint.SPDocumentLibrary, String)

...

|SharePointIntegration.Open(WordTemplate, Microsoft.SharePoint.SPDocumentLibrary, String)

...

] | {excerpt-include:SharePointIntegration.Open(WordTemplate, Microsoft.SharePoint.SPDocumentLibrary, String)

...

|nopanel

...

=true} |
| [Open(WordTemplate, Microsoft.SharePoint.SPListItem, String)

...

|SharePointIntegration.Open(WordTemplate, Microsoft.SharePoint.SPListItem, String)

...

] | {excerpt-include:SharePointIntegration.Open(WordTemplate, Microsoft.SharePoint.SPListItem, String)

...

|nopanel

...

=true} |
| [Save(WordApplication, Document, Microsoft.SharePoint.SPListItem, String)

...

|SharePointIntegration.Save(WordApplication, Document, Microsoft.SharePoint.SPListItem, String)

...

] | {excerpt-include:SharePointIntegration.Save(WordApplication, Document, Microsoft.SharePoint.SPListItem, String)

...

|nopanel

...

=true} |
| [Save(WordApplication, Document, Microsoft.SharePoint.SPDocumentLibrary, String, Boolean)

...

|SharePointIntegration.Save(WordApplication, Document, Microsoft.SharePoint.SPDocumentLibrary, String, Boolean)

...

] | {excerpt-include:SharePointIntegration.Save(WordApplication, Document, Microsoft.SharePoint.SPDocumentLibrary, String, Boolean)

...

|nopanel

...

=true} |
| [Save(WordTemplate, Microsoft.SharePoint.SPListItem, String)

...

|SharePointIntegration.Save(WordTemplate, Microsoft.SharePoint.SPListItem, String)

...

] | {excerpt-include:SharePointIntegration.Save(WordTemplate, Microsoft.SharePoint.SPListItem, String)

...

|nopanel

...

=true} |
| [Save(WordTemplate, Microsoft.SharePoint.SPDocumentLibrary, String, Boolean)

...

|SharePointIntegration.Save(WordTemplate, Microsoft.SharePoint.SPDocumentLibrary, String, Boolean)

...

] | {excerpt-include:SharePointIntegration.Save(WordTemplate, Microsoft.SharePoint.SPDocumentLibrary, String, Boolean)

...

|nopanel

...

=true} |
| [SetDataSource(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String)

...

|SharePointIntegration.SetDataSource(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String)

...

] | {excerpt-include:SharePointIntegration.SetDataSource(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String)

...

|nopanel

...

=true} |
| [SetDataSource(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList)

...

|SharePointIntegration.SetDataSource(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList)

...

] | {excerpt-include:SharePointIntegration.SetDataSource(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList)

...

|nopanel

...

=true} |
| [SetDataSource(WordTemplate, Microsoft.SharePoint.SPList, String)

...

|SharePointIntegration.SetDataSource(WordTemplate, Microsoft.SharePoint.SPList, String)

...

] | {excerpt-include:SharePointIntegration.SetDataSource(WordTemplate, Microsoft.SharePoint.SPList, String)

...

|nopanel

...

=true} |
| [SetDataSource(WordTemplate, Microsoft.SharePoint.SPList)

...

|SharePointIntegration.SetDataSource(WordTemplate, Microsoft.SharePoint.SPList)

...

] | {excerpt-include:SharePointIntegration.SetDataSource(WordTemplate, Microsoft.SharePoint.SPList)

...

|nopanel

...

=true} |
| [SetMailMerge(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, Integer)

...

|SharePointIntegration.SetMailMerge(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList,

...

 Int32)] | {excerpt-include:SharePointIntegration.SetMailMerge(WordTemplate, Microsoft.SharePoint.SPView,  Microsoft.SharePoint.SPList, Integer)

...

|nopanel

...

=true} |
| [SetMailMerge(WordTemplate, Microsoft.SharePoint.SPView,  Microsoft.SharePoint.SPList)

...

|SharePointIntegration.SetMailMerge(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList)

...

] | {excerpt-include:SharePointIntegration.SetMailMerge(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList)

...

|nopanel

...

=true} |
| [SetMailMerge(WordTemplate, Microsoft.SharePoint.SPList, Integer)

...

|SharePointIntegration.SetMailMerge(WordTemplate, Microsoft.SharePoint.SPList,

...

 Int32)] | {excerpt-include:SharePointIntegration.SetMailMerge(WordTemplate, Microsoft.SharePoint.SPList, Integer)

...

|nopanel

...

=true} |
| [SetMailMerge(WordTemplate, Microsoft.SharePoint.SPList)

...

|SharePointIntegration.SetMailMerge(WordTemplate, Microsoft.SharePoint.SPList)

...

] | {excerpt-include:SharePointIntegration.SetMailMerge(WordTemplate, Microsoft.SharePoint.SPList)

...

|nopanel

...

=true} |
| [SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String, Int)

...

|SharePointIntegration.SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String,

...

 Int32)] | {excerpt-include:SharePointIntegration.SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String, Int)

...

|nopanel

...

=true} |
| [SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String)

...

|SharePointIntegration.SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String)

...

] | {excerpt-include:SharePointIntegration.SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String)

...

|nopanel

...

=true} |
| [SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPList, String, Int)

...

|SharePointIntegration.SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPList, String,

...

 Int32)] | {excerpt-include:SharePointIntegration.SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPList, String, Int)

...

|nopanel

...

=true} |
| [SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPList, String)

...

|SharePointIntegration.SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPList, String)

...

] | {excerpt-include:SharePointIntegration.SetRepeatBlock(WordTemplate, Microsoft.SharePoint.SPList, String)

...

|nopanel

...

=true} |