I have developed a test app in .NET that reads an MPP file. It just iterates thru' the available nodes and shows them as a list, like such:
' Open the file. There are a number of options in this constructor as you can see
Dim proj As Project = projectApp.ActiveProject
For Each p As System.Reflection.PropertyInfo In proj.GetType().GetProperties()
If p.CanRead Then
Try
Console.WriteLine("{0}: {1}", p.Name, p.GetValue(proj, Nothing))
Dim item As RadListBoxItem = New RadListBoxItem
item.Name = p.Name
item.Text = p.Name
item.Value = p.GetValue(proj, Nothing)
lbNodes.SelectedIndex = 0
If blnComboboxItemSelected = False Then
lbNodes.SelectedItem = p.Name
blnComboboxItemSelected = True
End If
lbNodes.Items.Add(item)
Catch ex As Exception
End Try
End If
Next
This works in XP Pro. I am able to see the "Task" node. However, it is missing in Windows 7 Pro x64.
' Open the file. There are a number of options in this constructor as you can see
Dim proj As Project = projectApp.ActiveProject
For Each p As System.Reflection.PropertyInfo In proj.GetType().GetProperties()
If p.CanRead Then
Try
Console.WriteLine("{0}: {1}", p.Name, p.GetValue(proj, Nothing))
Dim item As RadListBoxItem = New RadListBoxItem
item.Name = p.Name
item.Text = p.Name
item.Value = p.GetValue(proj, Nothing)
lbNodes.SelectedIndex = 0
If blnComboboxItemSelected = False Then
lbNodes.SelectedItem = p.Name
blnComboboxItemSelected = True
End If
lbNodes.Items.Add(item)
Catch ex As Exception
End Try
End If
Next
This works in XP Pro. I am able to see the "Task" node. However, it is missing in Windows 7 Pro x64.