Description
Sets an array of objects as a template data source.
C#
public void BindData(Object[] columnValues, String[], columnNames, String dataSourceName, PowerPointWriter.DataBindingProperties bindingProperties)
vb.net
Public Overridable Sub BindData(ByVal columnValues As Object[], ByVal columnNames As String[], ByVal dataSourceName As String, ByVal bindingProperties As DataBindingProperties
Parameters
columnValues
An array of objects to use as the data source.columnNames
The names of the columns to get from the data source.dataSourceName
The name of the data source.bindingProperties
A DataBindingProperties object.Examples
C#
string[] values = {"Hello World", "subtitle"};
string[] colNames = {"header", "subtitle"};
DataBindingProperties DataProps = pptt.CreateDataBindingProperties();
ppt.BindData(values, colNames, "DataSource1", DataProps);
vb.net
Dim values = New String() {"Hello World", "subtitle"}
Dim colNames = New String() {"header", "subtitle"}
Dim DataProps As DataBindingProperites = pptt.CreateDataBindingProperties();
pptt.BindData(values, colNames, "DataSource1", DataProps);
