02-10-2020 10:48 AM - edited 02-10-2020 10:49 AM
I have a simple XL Report that creates and saves a file in a specific location on Disk.
Works perfectly in the development environment.
It does not work when built as an executable.
LabView 2011. Windows 10
Any suggestions?
KM
02-10-2020 11:13 AM
Hi, DeOdderKeith!
If you're saving a file to a C:\ path, try to run your executable as administrator. Maybe your program just don't have enough privileges to save file at this location.
02-10-2020 11:55 AM
Without your "Build Path__ogtk.vi" we can't see what you are doing wrong.
02-10-2020 12:06 PM - edited 02-10-2020 12:07 PM
@Sam_Rudneff wrote:
If you're saving a file to a C:\ path, try to run your executable as administrator. Maybe your program just don't have enough privileges to save file at this location.
That's one of the main reasons I tend to always save my data to the Public Documents.

02-10-2020 12:25 PM
The openg variant of build path makes no difference here. (The only difference is that it accepts arrays, see See here, fo example ).
02-10-2020 12:35 PM
Are you testing on a different or on the same computer?
If different, does it contain the same version of office? Does C:\data exist? Is the app allowed to write to it? Do you get any errors?
As others already said, writing to the root (or close to) the root of the drive is not recommended.
LabVIEW 2011 is not supported in windows 10, so there could be other issues.
02-10-2020 01:29 PM
I was sent this article which seemed to allow the application to run properly.
I'm about to test it on "The Big App" in a few mins
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019O6PSAU&l=en-US
KM
02-10-2020 02:23 PM
@DeOdderKeith wrote:
I was sent this article which seemed to allow the application to run properly.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019O6PSAU&l=en-US
Yep, been there. Since the Report Generation Toolkit dynamically loads the object that is needed, the app builder does not know it needs to include the Excel class. So you have to add that library/class to your project and then "Always Include" it in your application.