Phil,
You can use the ISASTaskData and ISASTaskDataColumn interfaces to get this information.
Here is a C# snippet that should translate to VB.NET fairly easily.
[pre]
using SAS.Shared.AddIns;
ISASTaskData data = Consumer.ActiveData;
ISASTaskDataAccessor da = data.Accessor;
// to do that, we need to "open" the data to get a peek at the column
// information
if (da.Open())
{
for (int i=0; i < da.ColumnCount; i++)
{
ISASTaskDataColumn ci = da.ColumnInfoByIndex(i);
cmbReport.Items.Add(ci.Label);
}
da.Close();
}
[/pre]
Chris
Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!