U
urgent!!
I've referenced the COM object of MS Project but when I copy the code below
and run it in vb.net I get error during design time saying that type
Microsoft.Office.Interop.MSProject.Application is not defined. what does it
means?
Dim pj As New Microsoft.Office.Interop.MSProject.Application
pj.Visible = True
pj.FileOpen(txtSourceFile.Text.ToString())
Debug.Print(pj.ActiveProject.Name)
Debug.Print(pj.ActiveProject.Tasks.Count)
Dim tsk As Microsoft.Office.Interop.MSProject.Task
For Each tsk In pj.ActiveProject.Tasks
Debug.Print(tsk.Name)
Next
and run it in vb.net I get error during design time saying that type
Microsoft.Office.Interop.MSProject.Application is not defined. what does it
means?
Dim pj As New Microsoft.Office.Interop.MSProject.Application
pj.Visible = True
pj.FileOpen(txtSourceFile.Text.ToString())
Debug.Print(pj.ActiveProject.Name)
Debug.Print(pj.ActiveProject.Tasks.Count)
Dim tsk As Microsoft.Office.Interop.MSProject.Task
For Each tsk In pj.ActiveProject.Tasks
Debug.Print(tsk.Name)
Next