Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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

{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#}
            DataBindingProperties dbp = xlt.CreateDataBindingProperties();
{code}
{code:vb.net
|title=vb.net
}
            Dim dbp As DataBindingProperties = xlt.CreateDataBindingProperties()
Signature
C#C#
Wiki Markup
{description}
{excerpt}The [DataBindingProperties|DataBindingProperties] object contains the properties information necessary to bind data to an ExcelWriter template.
{excerpt}

{signature:C#}
 public sealed class DataBindingProperties
Signature
{signature}{signature:vb.net
vb.net
}
Public NotInheritable Class DataBindingProperties
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
csharpcsharp
titleC#
Code Block
vb.nettitle
Properties

...

Name

...

Description

...

MaxRows

...

{code}
{remarks}

{properties}
||Name||Description||
|[MaxRows|DataBindingProperties.MaxRows]|{excerpt-include:DataBindingProperties.MaxRows

...

Transpose

|nopanel=true}|
|[Transpose|DataBindingProperties.Transpose]|{excerpt-include

...

:DataBindingProperties.Transpose

...

WorksheetName

|nopanel=true}|
|[WorksheetName|DataBindingProperties.WorksheetName]|{excerpt-include

...

:DataBindingProperties.WorksheetName

...

|nopanel=true}|