N
Nach
Hello:
I am using Project 2003. I am writing a C# code and a part of it tried to
add resources from the enterprise using the following code:
appObject.EnterpriseResourceGet(euid,ActiveProject.Resources.count);
[This works sometimes and sometimes gets back with the error -- argument
value is invalid]
if I use this code which works fine in VBA but not in C#
appObject.EnterpriseResourceGet(euid);
[This gives a compilation error-- No overload for method
EnterpriseResourceGet takes '1' arguments].
I'm not sure how to get a unique resource Id for the activeproject as it
always throws some kind of an error. Enterprise Resource ID is easy to
get...but not the ResourceID for the particular project.
Any help will be appreciated.
Thanks
Nachal.
I am using Project 2003. I am writing a C# code and a part of it tried to
add resources from the enterprise using the following code:
appObject.EnterpriseResourceGet(euid,ActiveProject.Resources.count);
[This works sometimes and sometimes gets back with the error -- argument
value is invalid]
if I use this code which works fine in VBA but not in C#
appObject.EnterpriseResourceGet(euid);
[This gives a compilation error-- No overload for method
EnterpriseResourceGet takes '1' arguments].
I'm not sure how to get a unique resource Id for the activeproject as it
always throws some kind of an error. Enterprise Resource ID is easy to
get...but not the ResourceID for the particular project.
Any help will be appreciated.
Thanks
Nachal.