Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Using LabVIEW as an Automation Client with Microsoft Word

6 ratings | 3.00 out of 5
Print
LabVIEW can be used to communicate with Microsoft Word via ActiveX automation with LabVIEW acting as the automation client and Word acting as the automation server. From LabVIEW, we are able to manipulate only the objects that Word exposes to other applications. This means that Word determines what it exposes and what values and variables must be passed to each property or method.

Manipulating Word via automation requires knowledge of the Word object model as well as familiarity with performing ActiveX automation from LabVIEW. The best source of information about the Word Object Model is the Word Object Model Help file located on your Microsoft Office CD. For Office 97, this file is called Vbawrd8.hlp. The Microsoft Object Model Guide details the organization of the objects in Word as well as Excel, Access, and PowerPoint. The basic procedure is to open a reference to Word 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 in the LabVIEW User Manual (linked below) for more information on using ActiveX with LabVIEW. In LabVIEW 8.0 or later, refer to the Using ActiveX with LabVIEW topic in the LabVIEW Help (linked below).

Related Links:
LabVIEW User Manual
LabVIEW Help: Using ActiveX with LabVIEW

6 ratings | 3.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).