Print Files From LabVIEW Without Using Report Generation Toolkit

Updated Aug 22, 2023

Reported In


  • LabVIEW
  • LabVIEW Report Generation Toolkit

Operating System

  • Windows

Issue Details

How can I programmatically print a file from LabVIEW if I do not have the LabVIEW Report Generation Toolkit for Windows or LabVIEW Professional, which includes these VIs?


You can programmatically print a file from LabVIEW by calling the ShellExecuteA function in SHELL32.DLL
  1. Download
  2. Extract the .ZIP file and open Winevent.llb.
  3. Open FileMan Print from the LLB Manager.
  4. Enter the path to the file to print in the path to file control.
  5. Run the VI.  It should open the file, print it, and close the file within a period of a few seconds.

Additional Information

The VI works by calling ShellExecuteA() in SHELL32.DLL, a component to Microsoft Window's API.