Using LabVIEW as an Automation Client with Microsoft Word
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
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/).
