Error -2147417842 When Printing From My LabVIEW Application

Updated Jun 16, 2018

Reported In


  • LabVIEW Report Generation Toolkit
  • LabVIEW 2017 Professional

Issue Details

When trying to print using the standard report generation functions in an executable built in LabVIEW 2017 64-bit, I received:  

Error -2147417842, Source = The application called an interface that was marshalled for a different thread. in NI_Standard Report. lvclass: Print Report

How to fix it?


In order to get rid of the error, you need to change the preferred execution system to user interface of every subVI that calls the Report Generation VI as following:
  1. Open the subVI and go to  File >> VI Properties.
  2. From the Category selection ring, choose Execution.
  3. On the Preferred Execution System select user interface.



Not Helpful