MS Project Question (very Difficult one)

W

Wongalogic

Dear friends:

Do you know how to change working time in MS Project by C#? I want to create a MS project file from C# using Project Library 9.0. I got MSProject.Application and MSProject.Project objects. Now I want to use them to set non-working date/time, like set 25-Dec-03 as a non-working day. Do you know how to do it?


Thanks,

Dennis
 
J

Jan De Messemaeker

Hello,

MSProject.application.activeproject.basecalendars("Standard").period("25/12/03").working=false

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
"Wongalogic" <[email protected]> schreef in bericht Dear friends:

Do you know how to change working time in MS Project by C#? I want to create a MS project file from C# using Project Library 9.0. I got MSProject.Application and MSProject.Project objects. Now I want to use them to set non-working date/time, like set 25-Dec-03 as a non-working day. Do you know how to do it?


Thanks,

Dennis
 
W

Wongalogic

Thanks, Jan. I use this:

project.BaseCalendars[1].Period(date1, date2).set_Working(false);

Dennis Huang
Hello,

MSProject.application.activeproject.basecalendars("Standard").period("25/12/03").working=false

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
"Wongalogic" <[email protected]> schreef in bericht Dear friends:

Do you know how to change working time in MS Project by C#? I want to create a MS project file from C# using Project Library 9.0. I got MSProject.Application and MSProject.Project objects. Now I want to use them to set non-working date/time, like set 25-Dec-03 as a non-working day. Do you know how to do it?


Thanks,

Dennis
 

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