B
brennen.milam
Greetings - I am importing data from a CSV file that contains timesheet
information - thus updating ActualWork and ActualCost for an assignment
in Project. I am writing this as a COM AddIn using VB.NET and MS
Project 2002 Pro.
When I try to set the ActualWork property for the TimeScaleData, I
occasionally get the error "An Unexpected Error Occured Within the
method" for the Value field. This occurs on a somewhat random basis
and I am stumped at the moment.
A rough sample of the code: (sorry about the poor formatting in this
post)
Dim tsvActualWork as MSProject.TimeScaleValue
tsvActualWork =
AppInstance.ActiveProject.Resources.UniqueID(intResourceUniqueID).Assignments(intAssignmentIndex).TimeScaleData(
ChargeDate, ChargeDate,
MSProject.PjAssignmentTimescaledData.pjAssignmentTimescaledActualWork,
MSProject.PjTimescaleUnit.pjTimescaleWeeks).Item(1)
tsvActualWork.Value = intHours
Does anyone know why this particular error is occuring? It is not
always at the same place and I have been unable to determine why/when
it happens. Any help would be much appreciated as I am new to
automation with MS Project.
Brennen Milam
information - thus updating ActualWork and ActualCost for an assignment
in Project. I am writing this as a COM AddIn using VB.NET and MS
Project 2002 Pro.
When I try to set the ActualWork property for the TimeScaleData, I
occasionally get the error "An Unexpected Error Occured Within the
method" for the Value field. This occurs on a somewhat random basis
and I am stumped at the moment.
A rough sample of the code: (sorry about the poor formatting in this
post)
Dim tsvActualWork as MSProject.TimeScaleValue
tsvActualWork =
AppInstance.ActiveProject.Resources.UniqueID(intResourceUniqueID).Assignments(intAssignmentIndex).TimeScaleData(
ChargeDate, ChargeDate,
MSProject.PjAssignmentTimescaledData.pjAssignmentTimescaledActualWork,
MSProject.PjTimescaleUnit.pjTimescaleWeeks).Item(1)
tsvActualWork.Value = intHours
Does anyone know why this particular error is occuring? It is not
always at the same place and I have been unable to determine why/when
it happens. Any help would be much appreciated as I am new to
automation with MS Project.
Brennen Milam