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

<p>public static Table ImportData(this Element element, Microsoft.SharePoint.SPList list)</p>
<p>Public Shared Function ImportData(ByVal element As Element, ByVal list As Microsoft.SharePoint.SPList) As Table</p>

The current element which is calling ImportData

The SharePoint List to be used as a data source

The Table into which the data is being imported

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

Table tbl = e.ImportData(myList);
Dim tbl As Table = e.ImportData(myList)