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

Description

The DataBindingProperties object contains the properties information necessary to bind data to an ExcelWriter template.

C#
vb.net

Remarks

The MaxRows, Transpose, and WorksheetName properties, which had been set as parameters in the SetDataSource methods of ExcelTemplate, are now bundled into the DataBindingProperties object and can be applied to multiple discrete data binding calls in a single application.

The DataBindingProperties object must be created using the ExcelTemplate.CreateDataBindingProperties method:

C#
vb.net

Properties

Name

Description

MaxRows

Sets or returns the maximum number of rows to be bound to the template file when the ExcelTemplate.BindData or ExcelTemplate.BindColumnData methods are called.

Transpose

Sets or returns whether the data being bound to a template file should be transposed before being bound to the template using the ExcelTemplate.BindData method.

WorksheetName

Sets or returns the name of the worksheet to which the data will be bound during an ExcelTemplate.BindData, ExcelTemplate.BindCellData, ExcelTemplate.BindColumnData, or ExcelTemplate.BindRowData method call.
  • No labels