Example Code

Programmatically Print an Image 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 VI programmatically calls Microsoft paint to print a PNG file to your default printer.

 

Description

This VI use System Exec VI to call Microsoft paint and print a PNG file to your default printer.

 

Requirements

  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

  1. Download the attached VI and PNG File.
  2. Enter the correct paths of the .png file you just downloaded.
  3. Run "Print Image from Microsoft Paint 2012 NI Verified.vi"
  4. Enter the path to the print image you wish to save.

Additional Information or References

VI Block Diagram

print.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
Poolean
Member
Member
on

I just did a quick searh for it, and I surprisingly couldn't find anything on it. I find it quite strange that you can call Paint to print, but not save! Please let me know if you were able to find anything.

Contributors