06-25-2014 11:11 AM
Similar to how I can operate Excel using ActiveX, can I operate Microsoft Project? I cannot find (nor do I know what to look for) anything that would resemble the refnum for Microsoft Project. "Any help here would be hot." (Jar Jar Binks)
06-25-2014 12:18 PM
Just as with Excel, Microft provides an Object Model for Project.
http://msdn.microsoft.com/en-us/library/bb179353%28v=office.12%29.aspx
06-25-2014 01:49 PM - edited 06-25-2014 02:14 PM
I may need to be spoon fed on this one. When I select Microsoft Project 14.0 Task Launch Control (only Microsoft Project related item I can find in "Type Library") the only options are ITaskLauncher and TaskLauncher in the Objects. The map provided by Windows doesn't even mention these items.
06-26-2014 08:04 AM
Can anyone please help? My brain hurts from my searching through property nodes and maps.
06-27-2014 02:42 PM
Hi DailyDose,
I was not able to find anything specific to Microsoft Project, it will require digging through the nodes as you suggested. It should be possible as long as Microsoft allows it. Have you been able to verify that?
http://www.ni.com/white-paper/2983/en/
06-27-2014 02:57 PM
@DailyDose wrote:
Can anyone please help? My brain hurts from my searching through property nodes and maps.
I have never used Microsoft Project.
However, the easiest unless there is a LabVIEW tutorial for it somewhere is to read how to do it with VBA and translate that to LabVIEW.
http://masamiki.com/project/articles/Microsoft-Project-VBA-Articles.html
06-27-2014 03:29 PM
MajorTom wrote:
It should be possible as long as Microsoft allows it. Have you been able to verify that?
I have not been able to verify, however it seems like it should be possible just based on that link that nyc provided to the object map. Problem is, digging through the Prop Nodes has not resulted in anything that looks like the map. I'm going to dig through the VBA stuff like suggested above. That does tend to be very similar.
06-27-2014 03:48 PM
I had no trouble launching the Microsoft Project About Window using ActiveX and there seem to be more methods and properties than you can shake a stick at. There was an ActiveX type along the lines of Microsoft Project 12.0 Object Library 4.x, the creatable items included application.
06-27-2014 03:58 PM
@Darin.K wrote:
I had no trouble launching the Microsoft Project About Window using ActiveX and there seem to be more methods and properties than you can shake a stick at. There was an ActiveX type along the lines of Microsoft Project 12.0 Object Library 4.x, the creatable items included application.
I looked through this ActiveX and never did find Application. I'm starting to wonder...do I have to have Microsoft Project installed onto my computer before LabVIEW will show the ActiveX options? I mean, I guess that makes sense. I don't have it installed. But I feel as though it would make more sense that those options are readily available to you in LabVIEW seeing as how it's a developer program. Develop it, package and ship it, and they send it back to you saying it doesn't work. Which then I'd be like, I don't actually have it installed, so I was never able to test it. ![]()
06-27-2014 04:02 PM
I assume you clicked the button to only display creatable items. That pared the list from Avagadro's number down to about 3 or 4 items for me.