B
B. Chernick
As I have mentioned elsewhere I am reasonably familiar with Dot Net 2.0 but
not with Project (any version) or Interop.
I have Project 2003 Professional VS2005 installed on my machine. I have
declared 'Imports Microsoft.Office.Interop.MSProject' and created an instance
of Microsoft.Office.Interop.MSProject.Application in my program. I have
opened 2 projects and created objects pointing to them (call them oMainProj
and oIncomingProj).
Given that, what I am trying to do is copy all of the tasks from
oIncomingProj to oMinProj. This would appear a simple matter but while the
main project objects appear to be ok, when I try to loop through
IncomingProj's task collection I find I cannot view any of the properties of
any of the tasks. There are a whole lot of 0x80010105 errors, 'The server
threw an exception'. If I trap the error, I get a message of 'The argument
value is not valid'.
not with Project (any version) or Interop.
I have Project 2003 Professional VS2005 installed on my machine. I have
declared 'Imports Microsoft.Office.Interop.MSProject' and created an instance
of Microsoft.Office.Interop.MSProject.Application in my program. I have
opened 2 projects and created objects pointing to them (call them oMainProj
and oIncomingProj).
Given that, what I am trying to do is copy all of the tasks from
oIncomingProj to oMinProj. This would appear a simple matter but while the
main project objects appear to be ok, when I try to loop through
IncomingProj's task collection I find I cannot view any of the properties of
any of the tasks. There are a whole lot of 0x80010105 errors, 'The server
threw an exception'. If I trap the error, I get a message of 'The argument
value is not valid'.