B
B. Chernick
I have been trying to run Project 2003 through the interop. After some
intial setup problems, I have gotten my test project to the point where I can
create an instance of Project, load projects from SQL Server, iterate through
the Task collection, and view most of the property values of a task.
For the sake of testing I added the following line of code in the task
iteration loop: t.ActualCost =1.23
This crashes with a 'The argument value is not valid' error.
(I have also tried Cdbl(1.23) and cdbl("1.23").
The t.ActualCost Property itself displays a type of Double.
What's wrong here? Shouldn't I be able to set property values?
intial setup problems, I have gotten my test project to the point where I can
create an instance of Project, load projects from SQL Server, iterate through
the Task collection, and view most of the property values of a task.
For the sake of testing I added the following line of code in the task
iteration loop: t.ActualCost =1.23
This crashes with a 'The argument value is not valid' error.
(I have also tried Cdbl(1.23) and cdbl("1.23").
The t.ActualCost Property itself displays a type of Double.
What's wrong here? Shouldn't I be able to set property values?