LabVIEW ActiveX PDF Container Can Not Be Printed Out

Updated May 20, 2024

Reported In

Software

  • LabVIEW

Operating System

  • Windows

Other

  • Any PDF reader
  • ActiveX

Issue Details

I want to print out front panel of my VI which includes ActiveX PDF Containers (screenshot below).

image001.png

If I use the VI: Print VI Panel or Documentation.vi, the printout is working normal, but the pictures of the ActiveX Containers are empty (screenshot below).

image003.png

I'm getting same result when I use Get Image Method  or Front Panel:Get Image Method  for ActiveX Containers.

Solution

Any PDF document opened in LabVIEW using ActiveX Container won't be displayed or printed out by using methods described above; regardless of the viewer or if ti's opened in the browser.

To get the screenshot of the VI's front panel apply Windows user32.dll as described in the Programmatically Acquire Screenshot in Executable Application example (which will capture whole screen). To cut out specific area of the screenshot Windows API functions and .NET calls can be used. Example can be found in the following forum.