Using LabVIEW as an Automation Client with Microsoft PowerPoint

Publish Date: Sep 06, 2006 | 5 Ratings | 2.60 out of 5 |  PDF

1. Description

You can use LabVIEW to communicate with Microsoft PowerPoint via ActiveX automation with LabVIEW acting as the automation client and PowerPoint acting as the automation server. From LabVIEW, you can manipulate only the objects that PowerPoint exposes to other applications. This means that PowerPoint determines what it exposes and what values and variables must be passed to each property or method.

Manipulating PowerPoint via automation requires you to have knowledge of the PowerPoint object model as well as familiarity with performing ActiveX automation from LabVIEW. The best source of information about the PowerPoint Object Model is the PowerPoint Object Model Help file located on your Microsoft Office CD. For Office 97, this file is called Vbappt8.hlp. The Microsoft Object Model Guide details the organization of the objects in PowerPoint as well as Excel, Access, and Word. The basic procedure for using LabVIEW to communicate with PowerPoint is to open a reference to PowerPoint from LabVIEW, invoke methods and set/get properties, and then close the reference.

In LabVIEW 7.1 or earlier, refer to the ActiveX Support chapter of the LabVIEW User Manual (linked below) for more information about using LabVIEW with Microsoft PowerPoint. In LabVIEW 8.0 or later, refer to the Using ActiveX with LabVIEW topic in the LabVIEW Help (linked below).

Back to Top

2. Common Applications


Used to communicate with PowerPoint from LabVIEW in order to load a presentation or to run a slideslideshow programmatically. LabVIEW 6.x comes with an example that will prompt the user for a PowerPoint slide show presentation *.pps file and then launch PowerPoint. The example is located under LabVIEW folder \examples\comm\actxpp.llb
Related Links:
LabVIEW User Manual
LabVIEW Help: Using ActiveX with LabVIEW

Back to Top

Bookmark & Share

Ratings

Rate this document

Answered Your Question?
Yes No

Submit