467,915 Members | 1,140 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

MS Project Question (very Difficult one)

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

Nov 15 '05 #1
  • viewed: 2231
Share:
2 Replies
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" <De*****@BlueVisions.com.au> schreef in bericht news:#P*************@TK2MSFTNGP11.phx.gbl...
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
Nov 15 '05 #2
Thanks, Jan. I use this:

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

Dennis Huang
"Jan De Messemaeker" <ja*************@glo.be> wrote in message news:#8**************@TK2MSFTNGP11.phx.gbl...
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" <De*****@BlueVisions.com.au> schreef in bericht news:#P*************@TK2MSFTNGP11.phx.gbl...
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

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

41 posts views Thread by Michael Strorm | last post: by
5 posts views Thread by Arun Bhalla | last post: by
20 posts views Thread by venkatmail20034u | last post: by
11 posts views Thread by maybetooparanoid | last post: by
3 posts views Thread by marco Starglider | last post: by
19 posts views Thread by =?iso-8859-1?q?Robin_K=E5veland?= Hansen | last post: by
9 posts views Thread by gnewsgroup | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.