LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I operate Microsoft Project with ActiveX

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)

0 Kudos
Message 1 of 13
(4,173 Views)

Just as with Excel, Microft provides an Object Model for Project.

http://msdn.microsoft.com/en-us/library/bb179353%28v=office.12%29.aspx

 

0 Kudos
Message 2 of 13
(4,160 Views)

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.

0 Kudos
Message 3 of 13
(4,151 Views)

Can anyone please help?  My brain hurts from my searching through property nodes and maps.

0 Kudos
Message 4 of 13
(4,129 Views)

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?

ActiveX and LabVIEW

http://www.ni.com/white-paper/2983/en/

 

 

Thomas N.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 13
(4,101 Views)

@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

0 Kudos
Message 6 of 13
(4,096 Views)
 
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.

 

0 Kudos
Message 7 of 13
(4,092 Views)

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.

0 Kudos
Message 8 of 13
(4,085 Views)

 


@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.  Smiley Happy

 

0 Kudos
Message 9 of 13
(4,082 Views)

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.

0 Kudos
Message 10 of 13
(4,078 Views)