LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -41106 - Excel Report Generation

Executing this:

michelesantucci_0-1756299833978.png

I got this:

 

Error -41106 occurred at NI_Excel.lvclass:new report subVI.vi -> NI_report.lvclass:New Report.vi -> Shell_PAIPL_3Liv.vi

Possible reason(s):

Report Generation Toolkit: Microsoft Word or Excel did not open. Make sure Microsoft Word or Excel is installed.

 

Office is installed, I have the same code running on multiple machines and it runs flawlessly.

I tried to reinstall Office, reinstall Report Toolkit, mass compile Excel.lib. I always got the same result.

 

And BTW the same problem/error code arise with this code also using different templates:

michelesantucci_0-1756301518398.png

BTW: the KB article proposed solution will not work:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P82QSAS&l=it-IT

 

 

0 Kudos
Message 1 of 2
(108 Views)

This is odd code.  The LabVIEW version is 2013, more than a decade "out of date".  When I run it, I get hung on the "New Report" function (when I push the "Save" button), showing Error -41003, "File Open error" (of course, I didn't specify any file names).

 

Do a Search of the Forum looking for a Demo I wrote more than a decade ago (type "Revised Excel " and it should pop up).  I think it also might be in LabVIEW 2013.  It still runs fine in LabVIEW 2021, and it should run fine on your system.  If it doesn't, you have a bad installation of LabVIEW or Excel or Windows.

 

Bob Schor

0 Kudos
Message 2 of 2
(49 Views)