Project 2010 Professional : unable to add task programmatically
-
Wednesday, May 19, 2010 11:34 AM
Hi,
the following code works inside my application when linked to MSP2007, but it MSP2010 it 'hangs' finally reporting an RPC error...
chartData.mPrj.activeProject.Tasks.Add("random text")
Can anyone shed any light as to why it is not working now ?
Paul.
All Replies
-
Wednesday, May 19, 2010 12:57 PMModerator
Hi Paul,
It does work in VBA Project. Which language are you using? Calling from an other application?
Which version of 2010? Beta? RTM? Final release?
- Marked As Answer by Christophe FiessingerMicrosoft Employee, Owner Wednesday, May 19, 2010 1:09 PM
- Unmarked As Answer by Paul Usher Wednesday, May 19, 2010 1:22 PM
-
Wednesday, May 19, 2010 1:24 PM
VB.Net - VS2010 - compiling on .Net 3.5 framework. Project 2010 RTM x64
also reported by client running RTM on 32 bit framework.
Task gets added, but execution does not return to my application.
-
Wednesday, May 19, 2010 4:26 PM
The problem was related to the some event handlers that had been added, NOT with the add method. Thanks for those who responded.
Paul Usher Usher.Net Pty Ltd "software by design"- Marked As Answer by Jim CorbinModerator Wednesday, May 19, 2010 4:29 PM