Sets an ADO.NET DataTable as a data source to bind to template data markers.

public void BindData(System.Data.DataTable dataTable, String dataSourceName, PowerPointWriter.DataBindingProperties bindingProperties)
Public Overridable Sub BindData(ByVal dataTable As System.Data.DataTable, ByVal dataSourceName As String, ByVal bindingProperties As DataBindingProperties

The DataTable to use as the data source.

The name of the data source.

A DataBindingProperties object.

          OleDbConnection Conn = new OleDbConnection();
          DataTable EmployeeDt = null;
          DataBindingProperties dataProps = pptt.CreateDataBindingProperties();
               Conn.ConnectionString = Application["connstring"].ToString();
               //--- SQL Query for employee information
               string EmployeeSQL = "SELECT FirstName + ' ' + " +
                    "LastName As Name, Title " +
                    "FROM Employees WHERE EmployeeID=?";
               OleDbCommand CmdEmployee = new OleDbCommand(EmployeeSQL, Conn);
               CmdEmployee.Parameters.Add("@EmployeeID", EmployeeId);
               OleDbDataAdapter AdptEmployee = new OleDbDataAdapter(CmdEmployee);
               EmployeeDt = new DataTable();
          Dim Conn As New OleDbConnection()
          Dim EmployeeDt As DataTable = Nothing
          Dim dataProps As DataBindingProperties = pptt.CreateDataBindingProperties()
               Conn.ConnectionString = Application("connstring").ToString()

               '--- SQL Query for employee information
               Dim EmployeeSQL As String = "SELECT FirstName + ' ' + " & _
                    "LastName As Name, Title " & _
                    "FROM Employees WHERE EmployeeID=?"
               Dim CmdEmployee As New OleDbCommand(EmployeeSQL, Conn)
               CmdEmployee.Parameters.Add("@EmployeeID", EmployeeId)
               Dim AdptEmployee As New OleDbDataAdapter(CmdEmployee)
               EmployeeDt = New DataTable()
          End Try
          pptt.BindData(EmployeeDt, _
               "Employee", _