Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Use ColumnNameFilter to select specific columns within the imported data. Only the specified columns will be imported to the worksheet.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Use [ColumnNameFilter|DataImportProperties.ColumnNameFilter] to select  specific columns within the imported data.  Only the  specified columns will be imported to the worksheet.{excerpt}
{signature:C#}
 public System.String[] ColumnNameFilter{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property ColumnNameFilter() As String()
Remarks

If the length of the specified array is greater than MaxColumns, or exceeds the size of the target area and Truncate is set to true, the smaller value will be used.

Using ColumnNameFilter overwrites any previous ColumnIndexFilter setting.

{signature}
{remarks}If the length of the specified array is greater than  [MaxColumns|DataImportProperties.MaxColumns], or exceeds the size of the target area  and [Truncate|DataImportProperties.Truncate] is set to {{true}},  the smaller value will be used.

Using   {{ColumnNameFilter}} overwrites  any previous [ColumnIndexFilter|DataImportProperties.ColumnIndexFilter] setting.

{remarks}
{example}{code:csharp|title=C#}

          //--- Get ColumnNameFilter
          string[] arrNames = importProps.ColumnNameFilter;

          //--- Set ColumnNameFilter
          importProps.ColumnNameFilter = arrNames;
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Get ColumnNameFilter
          Dim arrNames() As String = importProps.ColumnNameFilter

          '--- Set ColumnNameFilter
          importProps.ColumnNameFilter = arrNames
        {code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle