J
John Svazic
Hi all,
I'm using the C# wrapper for the Project COM object, and it has an
EditGoTo method. However, this one requires me to pass in two
parameters, one for the ID and the other for the Date. Here's what
I've tried to no avail:
....
Task newTask = ...; // Create the new task.
projectApp.EditGoTo(newTask.ID, ""); // Doesn't work.
projectApp.EditGoTo(newTask.ID, null); // Doesn't work.
projectApp.EditGoTo(newTask.UniqueID, ""); // Doesn't work.
projectApp.EditGoTo(newTask.UniqueID, null); // Doesn't work.
....
The specific error I'm getting is:
The argument value is not valid.
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at Microsoft.Office.Interop.MSProject._MSProject.EditGoTo(Object ID,
Object Date)
....
Any ideas? I've also tried the SelectTaskCell to no avail. I'm not
sure what I'm doing wrong here. Any help would be greatly appreciated.
I'm using the C# wrapper for the Project COM object, and it has an
EditGoTo method. However, this one requires me to pass in two
parameters, one for the ID and the other for the Date. Here's what
I've tried to no avail:
....
Task newTask = ...; // Create the new task.
projectApp.EditGoTo(newTask.ID, ""); // Doesn't work.
projectApp.EditGoTo(newTask.ID, null); // Doesn't work.
projectApp.EditGoTo(newTask.UniqueID, ""); // Doesn't work.
projectApp.EditGoTo(newTask.UniqueID, null); // Doesn't work.
....
The specific error I'm getting is:
The argument value is not valid.
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at Microsoft.Office.Interop.MSProject._MSProject.EditGoTo(Object ID,
Object Date)
....
Any ideas? I've also tried the SelectTaskCell to no avail. I'm not
sure what I'm doing wrong here. Any help would be greatly appreciated.