MS Project 2007- Application Class does not return correct Finish Date

T

thiruvarul

I am into development of an Add-in to MS Project wit
Microsoft.Office.Interop.MSProject - Application class. I am using th
following code in C# to fetch the finish date of the task.

ApplicationClass ProjApp = new ApplicationClass();
Task tks;
Project proj = ProjApp.ActiveProject;
DateTime dateEnd;

foreach(Task tasks in proj.Tasks)
{
tks = proj.Tasks[tasks.ID];
dateEnd = Convert.ToDateTime(tasks.Finish);
}

When I compare the dateEnd values with the MS Project mpp file Finish
sometime I am receiving wrong Finish date, if any of you facing
similar issue and any fix available please provide me ASAP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top