D
dotnet-force
Hi all,
I'm writing a MS Project 2002 Add-In in C#
My first question is :
Is there a way to know if a resource calendar is the project calendar ?
(i.e. is the resource has non working days different from the project ones).
Second question :
Is there a way to get specific non-working days (hours) for a resource ?
I want to be able to have the difference between the project calendar
and the resource calendar.
When a project is saved in XML format, such information is available.
Here is the information in the XML file.
<Calendar><UID>14</UID><Name>res5</Name><IsBaseCalendar>0</IsBaseCalendar><BaseCalendarUID>1</BaseCalendarUID>
<WeekDays>
<WeekDay>
<DayType>0</DayType>
<DayWorking>0</DayWorking>
<TimePeriod>
<FromDate>2003-12-03T00:00:00</FromDate>
<ToDate>2003-12-04T23:59:00</ToDate>
</TimePeriod>
</WeekDay>
</WeekDays>
</Calendar>
I saw nothing in the API of the
Microsoft.Office.Interop.MSProject.Calendar class but perhaps I missed
something.
Thanks for the help.
Pascal Lenormand
ILOG
I'm writing a MS Project 2002 Add-In in C#
My first question is :
Is there a way to know if a resource calendar is the project calendar ?
(i.e. is the resource has non working days different from the project ones).
Second question :
Is there a way to get specific non-working days (hours) for a resource ?
I want to be able to have the difference between the project calendar
and the resource calendar.
When a project is saved in XML format, such information is available.
Here is the information in the XML file.
<Calendar><UID>14</UID><Name>res5</Name><IsBaseCalendar>0</IsBaseCalendar><BaseCalendarUID>1</BaseCalendarUID>
<WeekDays>
<WeekDay>
<DayType>0</DayType>
<DayWorking>0</DayWorking>
<TimePeriod>
<FromDate>2003-12-03T00:00:00</FromDate>
<ToDate>2003-12-04T23:59:00</ToDate>
</TimePeriod>
</WeekDay>
</WeekDays>
</Calendar>
I saw nothing in the API of the
Microsoft.Office.Interop.MSProject.Calendar class but perhaps I missed
something.
Thanks for the help.
Pascal Lenormand
ILOG