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

Creates a DataBindingProperties object for assigning the property values associated with one or more data binding calls.

Signature
C#
C#
 public virtual DataBindingProperties CreateDataBindingProperties()
Signature
vb.net
vb.net
Public Overridable Function CreateDataBindingProperties() As DataBindingProperties
Remarks

A DataBindingProperties object is required for each SetDatasource call. Hence, CreateDataBindingProperties must be called at least once in any PowerPointTemplate project that binds data to a template.

The same DataBindingProperties object can be used for multiple data binding method calls.

Example
Code Block
csharp
csharp
titleC#

          //--- Create a DataBindingProperties object to be used
          //--- in a data binding call
          DataBindingProperties dbp = ExcelTemplate.CreateDataBindingProperties();
          xlt.SetDataSource(values, names, "DataSource1", dbp);
          xlt.Process();
          xlt.Save(Page.Response, "output.pptx", false);
        
Code Block
vbnet
vbnet
titlevb.net

          '--- Create a DataBindingProperties object to be used
          '--- multiple times in a project
          Dim dbp As DataBindingProperties = ExcelTemplate.CreateDataBindingProperties()
          dbp.MaxRows = 20
          xlt.BindData(values, names, "DataSource1", dbp)
          xlt.Process()
          xlt.Save(Page.Response, "output.pptx", False)