Example Code

Print Labels or Reports in 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 Report Generation Toolkit
  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This VI takes a string and pushes it to the printer using the report generation toolkit.

 

Description

You can use this simple SubVI whenever you wish to print a report or label. This VI will use the default printer for the computer, including networked printers. You can also specify a specific printer name on the print report vi.

 

Requirements

  • LabVIEW 2013 (or compatible).

 

Steps to Implement or Execute Code

  1. Enter a title and serial number into the corresponding controls.
  2. Run the program.
  3. The default printer will start printing the corresponding resultant strings.

Additional Information or References 

Main VI Block Diagram

capture.JPG

 

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

Tim, CLD, CTD
National Instruments (UK & Ireland)
________________________________________________
"No problem is insoluble in all conceivable circumstances"

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