Example Code

Open a PDF File using command line using LabVIEW

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 a PDF file using System Exec.vi.

 

Description

This example creates a command line that open a PDF file and passes it to System Exec.vi.

 

Requirements

  • LabVIEW 2012 (or compatible)
  • PDF reader

 
Steps to Implement or Execute Code

  1. Select a PDF file
  2. Run the VI

 

Additional Information or References

VI Block Diagram

 Open PDF via command line LV2012 NI verified.png

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

 

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

Comments
toto69
Member
Member
on

You are not using ActiveX here.

You only launch the command line and type the path to the pdf file.

Have a look here for a real use of ActiveX : https://decibel.ni.com/content/docs/DOC-2163

CFiset
Member
Member
on

It's not ActiveX!

Sujo
Member
Member
on

This is not using ActiveX

CFiset
Member
Member
on

Just retouch the text (replace ActiveX for System exec.VI). Hope I don't make any error

carlos_camargo
Member
Member
on

This is great!  It works for me.

MiloB
Member
Member
on

thank you, it works

beuvink
Member
Member
on

the /c did the job. Thanks!

---

25+ years long fan of LabVIEW. Be aware that NI changed their business model with great impact .