Wiki Markup |
---|
{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. {excerpt} {signature:C#} public int MaxRowsToImport{ get; set; } {signature}{signature:vb.net} Public Property MaxRowsToImport() As Integer {signature} {remarks} Any rows in the data source after the [MaxRowsToImport|DataBindingProperties.MaxRowsToImport] value will not be added to the template. {{MaxRowsToImport}} is a *Read/Write* property. {remarks} {example}{code:csharp|title=C#} DataBindingProperties dbp = pptt.CreateDataBindingProperties(); dbp.MaxRowsToImport = 20; pptt.BindData(valuesArray, colNamesArray0, "DataSource", dbp); pptt.Save(Page.Response, "output.pptx", false); {code} {code:vbnet|title=vb.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} |
Page History
Overview
Content Tools