Example Code

ActiveX - Open MS Word File

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example shows how to open word file using ActiveX control.

 

Description

This example uses ActiveX control to open Microsoft Word Documents.The ActiveX Class is selected as Word._Application. When open the word file, the Invoke Node is used to open the file. And when exit the file, the Invoke Node is also used to quit it,

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Specify the path of Word File.
  3. Click on the Open File button to open the word file.

 

 

Additional Information or References

Front Panel
3.PNG

VI Snippet

1.png

 

 

Please give your comments

 

Regards

Prabhakant

 

**This document has been updated to meet the current required format for the NI Code Exchange.** 

Regards
Prabhakant Patil

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Prabhakant_Patil
Member
Member
on

Please click on like if you like it.

Your valuable suggestions are always welcome for the improvement.

Regards,

Prabhakant

Regards
Prabhakant Patil
c43366
Member
Member
on

Thank. It helps me a lot.