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