{description} {excerpt}Creates a [DataBindingProperties|DataBindingProperties] object for assigning the property values associated with one or more data binding calls. {excerpt} {signature:C#} public virtual DataBindingProperties CreateDataBindingProperties() {signature} {signature:vb.net} Public Overridable Function CreateDataBindingProperties() As DataBindingProperties {signature} {remarks}A {{DataBindingProperties}} object is required for each [SetDatasource|PowerPointTemplate.SetDataSource] call. Hence, [CreateDataBindingProperties|PowerPointTemplate.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. {remarks} {example}{code:csharp|title=C#} //--- 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} {code:vbnet|title=vb.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) {code} {example} |