Click here to Skip to main content
15,907,183 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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.
Posted

ms is not much of a tag. How about Windows 7 4 bit, or VB.NET ?

Are you building a 64 bit version ? Are you saying that the code works, but the node you need is missing, or it blows up ?
 
Share this answer
 
32 bit. The code works. The node is missing. It doesn't blow up.
 
Share this answer
 
I typed ms project and it just took ms :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900