Error -2146827284 When Using Create Report VI As Minimized

Updated May 18, 2026

Reported In

Software

  • LabVIEW Report Generation Toolkit
  • LabVIEW

Issue Details

I am developing a LabVIEW VI using the Report Generation Toolkit for Microsoft Office. I am creating an Excel document using the Create Report VI (previously known as New Report VI) and one of the following VIs: 

  • Excel Easy Text VI,
  • Excel Merge Cells VI.


When I run my program, my report is not written to and my error handler reports Error -2146827284 occurred at an unidentified location. What causes this error to occur and how do I prevent it from happening?

Solution

This error is being thrown by an invoke method within Excel Easy Text VI or Excel Merge Cells VI. The following fixes will prevent this error from being thrown. 
  1. Change the Minimized enum constant connected to the Create Report.vi to Maximized, No change or Normal (One example can be seen in the snippet below.)
  2. Make sure you have the Microsoft Excel program fully opened before running your program.
 
VI Snippet Maximized instead of Minimized at Create Report VI
Solution Snippet ("minimized" enum changed to "maximized")
 Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram. 


If the above changes do not prevent this error from being thrown, check the following criteria:

  • The error occurs after a specific length of execution time.
  • You are using Microsoft Excel 2003 or earlier.

If your program meets these criteria, then this error is likely being thrown due to the pre-2007 Microsoft Excel spreadsheet size limit being reached.