Example Code

Determine the Number of Pages in a Word Document

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 VI determines how many pages there are in the corresponding Word Document the user specifies.

 

Description

This VI uses ActiveX of Microsoft Word to determine how many pages there are in a word document specified by the user in the file path control on the front panel.

 

Requirement

  1. LabVIEW2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Input file path to Microsoft Word Document
  2. Run the code.

Additional Information or References

NI Snippet

246.JPG

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

Jinfone
Applications Engineer
National Instruments

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