Page tree
Skip to end of metadata
Go to start of metadata

Introduced in build 7.1.0.1855

Description

Sets a SharePoint View as a data source for a single row in a template.

C#
vb.net

Parameters

template
The current ExcelTemplate object which is calling BindRowData
view
SharePoint View to use as a data source for the template
list
SharePoint List associated with the SharePoint View
dataSourceName
Name of the data source in the template
properties
The DataBindingProperties object which contains information about how the data should be bound to the template. property Must be specified, but the DataBindingProperties need not be set beforehand. To bind data to a template with the default DataBindingProperties, pass in ExcelTemplate.CreateDataBindingProperties() as the property value. Otherwise, use the ExcelTemplate.CreateDataBindingProperties() method to generate a new DataBindingProperties object and set the DataBindingProperties.MaxRows, DataBindingProperties.Transpose, and/or DataBindingProperties.WorksheetName properties for the workbook.

Exceptions

ArgumentNullException
BindRowData will throw this exception if null (C#) or Nothing (VB.NET) is passed to the method.
ArgumentException

Remarks

Icon

This is an extension method for the ExcelTemplate object to be used for binding SharePoint data to spreadsheets from within SharePoint. To use this method, you must add a reference to SoftArtisans.OfficeWriter.ExcelWriter.SharePointIntegration.dll

  • No labels