Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

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

Signature
C#
C#
 public sealed class DataBindingProperties
{signature}{signature:
}
Signature
vb.net
vb.net
Public NotInheritable Class DataBindingProperties
{signature}

{remarks}The [MaxRows|DataBindingProperties.MaxRows], [Transpose|DataBindingProperties.Transpose], and [WorksheetName|DataBindingProperties.WorksheetName] properties, which had been set as parameters in the [SetDataSource|ExcelTemplate.SetDataSource] methods of [ExcelTemplate|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|ExcelTemplate.CreateDataBindingProperties()] method:
{code:csharp|title=C#}
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:

Code Block
csharp
csharp
titleC#

            DataBindingProperties dbp = xlt.CreateDataBindingProperties();
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

            Dim dbp As DataBindingProperties = xlt.CreateDataBindingProperties()
{code} {remarks} {properties} ||Name||Description|| |[MaxRows|DataBindingProperties.MaxRows]|{excerpt-include:DataBindingProperties.MaxRows|nopanel=true}| |[Transpose|DataBindingProperties.Transpose]|{excerpt-include:DataBindingProperties.Transpose|nopanel=true}| |[WorksheetName|DataBindingProperties.WorksheetName]|{excerpt-include:DataBindingProperties.WorksheetName|nopanel=true}|
Properties

Name

Description

MaxRows

Excerpt Include
DataBindingProperties.MaxRows
DataBindingProperties.MaxRows
nopaneltrue

Transpose

Excerpt Include
DataBindingProperties.Transpose
DataBindingProperties.Transpose
nopaneltrue

WorksheetName

Excerpt Include
DataBindingProperties.WorksheetName
DataBindingProperties.WorksheetName
nopaneltrue