Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Introducedin
4.1.0.1379

...

4.1.0.1379
Description

Excerpt

Imports the data from a SharePoint List into a Table at the point of the current element in the document.

Signature
C#
C#

<p>public static Table ImportData(this Element element, Microsoft.SharePoint.SPList list)
{signature}{signature:</p>
} Public
Signature
vb.net
vb.net

<p>Public Shared Function ImportData(ByVal element As Element, ByVal list As Microsoft.SharePoint.SPList) As Table
{signature}
{parameters}
{param:element}The current element which is calling ImportData{param}
{param:list}The SharePoint List to be used as a data source{param}
{returns}The {{Table}} into which the data is being imported{returns}
{remarks}
{note}This is an extension method for the Element object to be used for binding SharePoint data to documents from within SharePoint.  To use this method, you must add a reference to Table</p>
Parameters
Param
element
element

The current element which is calling ImportData

Param
list
list

The SharePoint List to be used as a data source

Returns

The Table into which the data is being imported

Remarks
Note

This is an extension method for the Element object to be used for binding SharePoint data to documents 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#}

Example
Code Block
csharp
csharp
titleC#

Table tbl = e.ImportData(myList);
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim tbl As Table = e.ImportData(myList)
{code} {example}