LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

'server execution failed' excel_open_workbook.vi

I receive the following error when running an executable of my application on a PC that is different from the one I developed my application on.
'Server Execution Failed in Excel_Open_Workbook.vi' error code: -2146959355

My program is a simple application that opens and reads data from an existing excel worksheet. I developed my application using LabView 7.1 with the report generation toolkit on a Win2000 PC. I have compiled the program to an executable (I included the _Work Dynamic VIs.vi and _Excel Dynamic VIs.vi in the build script). Since this program is intended for use on multiple Win2000 PC's that do not have LabView installed, I included 'create installer' with the run-time engine option, within the build script. The executable compiles without error and runs properly on the same PC that I developed the application. When I install and run the executable on another Win2000 PC, it fails to successfully open the specified excel worksheet and will produce the above error message within an error out cluster indicator.
0 Kudos
Message 1 of 4
(3,755 Views)
I wrote my own Excel library, so I am not exactly sure how the NI version works, but I have a pretty good idea what the problem is. When you built the .exe, there was probably a \data directory under the directory your .exe was deposited into (c:\My Excel App\data). In that \data directory, there is probably a .dll that the program needs, but it was not installed on the new machine. Take that data directory and put it on the new computer in the same directory as the .exe was deposited into when you install. Let me know if that helps or if you have any other questions.
0 Kudos
Message 2 of 4
(3,735 Views)

To me, it seems like you are trying to run the executable on a machine with a different version of Microsoft Office installed than on the development machine. Here is a KnowledgeBase that describes the behavior:

Error 2146959355 When Running Exe on Machine With Different Version of Office [broken link removed]

- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Message 3 of 4
(3,720 Views)
Phillip,

Your assessment was correct. It turns out that my development platform has Excel 2002, whereas my target platforms had Excel 2000. After upgrading the target platforms to Excel 2002, my distributed application runs without error.

Thanks!
0 Kudos
Message 4 of 4
(3,706 Views)