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

T

Thiruvarul M

I am into development of an Add-in to MS Project with Microsoft.Office.Interop.MSProject - Application class. I am using the 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 a similar issue and any fix available please provide me ASAP.


EggHeadCafe - Software Developer Portal of Choice
Upload Photos to the Web with your SmartPhone
http://www.eggheadcafe.com/tutorial...6d-9227152fa0e7/upload-photos-to-the-web.aspx
 

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