LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I start and terminate a power point presentation from a sub vi ?

I have been able to start a power point presenation from a VI; however, the presentation gets hung up on the last slide (end of slide show, hit key to exit). I would be able to start and complete the power point slide show from LabVIEW .
0 Kudos
Message 1 of 6
(3,162 Views)
I was tyring to do this 4 years ago.

At that time, the only approach that looked good was trying the get PP to fire a "Slide show End" event.

At that time, the event would fire inside VB but I could never get LV to detect the event.

This may have changed as a result of that lay suite that forced MS to expose internal functionality, so you may want to try this again.

Under Communicatons >>> ActiveX there is a "Register Event callback".

Let me know if you figure this out.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(3,162 Views)
You can use the "Register Event Callback" connected to the PowerPoint Refnum, and register for the "SlideShowEnd" event. There might be better events to register for, but try it out.
For an example of using the "Register Event Callback", see the shipping example "ActiveX Event Callback for Excel.vi".

Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 3 of 6
(3,162 Views)
Does this now work with PP?

Like I said earlier, this did not work back in the LV 6.X days.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 6
(3,162 Views)
Yes it works with the exception, I can't get Powerpoint to terminate until I quit the top level application.
0 Kudos
Message 5 of 6
(3,162 Views)
Please refer to this thread for an example of how to close Microsoft PowerPoint from LabVIEW.

Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 6 of 6
(3,162 Views)