How to Print Front Panel of a WebVI Created with LabVIEW NXG

Updated Feb 3, 2021

This article provides an example on how to add a "Print" button to the Front Panel on your WebVI created on LabVIEW NXG.

Currently, LabVIEW NXG does not support Invoke Nodes, so this functionality can't be implemented from the Development Environment. However, you can add this functionality by directly modifying the HTML that is generated from the .GVIWEB on the web application project. 

  1. Open the HTML file in a text editor. 
  2. Add the following code in a section that makes sense for your application:
<html>
   <head>
   </head>
   
   <body>
      
      <form>
         <input type="button" value="Print" onclick="window.print()" />
      </form>
   
   </body>
<html>
3. Save the HTML. 

The Print button opens the Windows Print Dialog and captures everything that is on display.