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

Sets or returns the maximum number of rows to be bound to the template file when the PowerPointTemplate.BindData method is called. For example, if a data set contains 100 rows of data, but DataBindingProperties.MaxRowsToImport is set to 25, only 25 rows of data will be imported.

The default value is DataBindingProperties.MaxRowsToImport is -1 to indicate that all rows of data should be imported from the data source.

Signature
C#
C#

 public int MaxRowsToImport{ get; set; }

...

Signature
vb
vb

Public Property MaxRowsToImport() As Integer

...

Remarks

Any rows in the data source after the MaxRowsToImport value will not be added to the template.

MaxRowsToImport is a Read/Write property.

Example
Code Block
csharp
csharp
titleC#


          DataBindingProperties dbp = pptt.CreateDataBindingProperties();
          dbp.MaxRowsToImport = 20;
          pptt.BindData(valuesArray, colNamesArray0, "DataSource", dbp);
          pptt.Save(Page.Response, "output.pptx", false);
        
{code} {code:vbnet|title=
Code Block
vbnet
vbnet
titlevb.net
}


          Dim dbp As DataBindingProperties = pptt.CreateDataBindingProperties()
          dbp.MaxRowsToImport = 20
          pptt.BindData(valuesArray, colNamesArray, "DataSource", dbp)
          pptx.Save(Page.Response, "output.pptx", False)
        
{code} {example}