Description
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, butDataBindingProperties.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.
C#
public int MaxRowsToImport{ get; set; }
vb.net
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.
Examples
C#
DataBindingProperties dbp = pptt.CreateDataBindingProperties();
dbp.MaxRowsToImport = 20;
pptt.BindData(valuesArray, colNamesArray0, "DataSource", dbp);
pptt.Save(Page.Response, "output.pptx", false);
vb.net
Dim dbp As DataBindingProperties = pptt.CreateDataBindingProperties()
dbp.MaxRowsToImport = 20
pptt.BindData(valuesArray, colNamesArray, "DataSource", dbp)
pptx.Save(Page.Response, "output.pptx", False)
