08-27-2025 08:09 AM - edited 08-27-2025 08:57 AM
Executing this:
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:
BTW: the KB article proposed solution will not work:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P82QSAS&l=it-IT
08-28-2025 07:35 AM
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