| Introducedin | ||||
|---|---|---|---|---|
|
| Description |
|---|
| Excerpt |
|---|
Sets a SharePoint List as a template data source. |
| Signature | ||||
|---|---|---|---|---|
| ||||
public static void BindData(this ExcelTemplate template, Microsoft.SharePoint.SPList view, String dataSourceName, DataBindingProperties properties) |
| Signature | ||||
|---|---|---|---|---|
| ||||
Public Shared Sub BindData(ByVal template As ExcelTemplate, ByVal list As Microsoft.SharePoint.SPList, ByVal dataSourceName As String, ByVal properties As DataBindingProperties) |
| Parameters |
|---|
| Param | ||||
|---|---|---|---|---|
| ||||
The current ExcelTemplate object which is calling BindData |
| Param | ||||
|---|---|---|---|---|
| ||||
SharePoint List to use as a data source for the template |
| Param | ||||
|---|---|---|---|---|
| ||||
Name of the data source in the template |
| Param | ||||
|---|---|---|---|---|
| ||||
The DataBindingProperties object which contains information about how the data should be bound to the template. |
| Exceptions |
|---|
| Exception | ||||
|---|---|---|---|---|
| ||||
|
| Exception | ||||
|---|---|---|---|---|
| ||||
| Remarks | ||
|---|---|---|
You can set several data sources for a single template. Use the following methods to set template data sources: BindCellData, BindColumnData, BindRowData, and BindData.
|