This class is used to control settings for importing data into a table or table cell.

 public sealed class DataImportProperties
Public NotInheritable Class DataImportProperties

To create a DataImportProperties object, use Document.CreateDataImportProperties.

To actually import data, use Element.ImportData and pass in a DataImportProperties object along with the data to import.


          WordApplication app = new WordApplication();
          Document doc = app.Create();
          DataImportProperties importProps = doc.CreateDataImportProperties();

          //--- Set a few properties
          importProps.UseColumnNames = true;
          importProps.AutoFit = true;

          //--- Import data into a new table and apply the DataImportProperties
          Table dataImportTable = oTable.ImportData(oDataTable, importProps);
        

          Dim app As New WordApplication()
          Dim doc As Document = app.Create()
          Dim importProps As DataImportProperties = doc.CreateDataImportProperties()

          '--- Set a few properties
          importProps.UseColumnNames = True
          importProps.AutoFit = True

          '--- Import data into a new table and apply the DataImportProperties
          Table dataImportTable = oTable.ImportData(oDataTable, importProps)
        

Name

Description

AutoFit

AutoFormatter

ColumnIndexFilter

ColumnNameFilter

MaxColumns

MaxRows

UseColumnNames