LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Distribution disk error: Microsoft Excel Automation(Exception occured) second error: Microsoft Excel Automation (The handle is invalid.)

Trying to create a distribution file that will work on another test station. Using Labwindows CVI version 8.0.1 microsoftwindows 2000/XP.

The program uses the (Microsoft Excel 9.0 Object Library) and (Internet Library). I get the following errors when it trys to run the Excel functions:

 

First error:Dialog box shows "Error: Microsoft Excel Automation" and message " Exception occured" hit enter key the second error

-->second error:Dialog box shows "Error: Microsoft Excel Automation" and message "The handle is invalid"

 

Do I need to edit the Installer files, is there something missing?

 

thanks

Chinook1

0 Kudos
Message 1 of 4
(4,214 Views)

Other users seem to have had similar difficulties, when code is run on a new PC does which not have the same version of Microsoft Office components installed as on the PC used for development. Is the Excel installation on your new target machine the same as on the development one?

 

JR

0 Kudos
Message 2 of 4
(4,212 Views)

chinook1,

 

What are you doing with your Excel Automation?  Are you opening an existing workbook or creating one?  If you are opening a workbook, have you made sure the path to that workbook is correct in your code?

 

Also, what happens if you install the CVI Run-time engine manually on a computer with Excel 2003 installed and then move over your executable manually as well?

Eric B.
National Instruments
0 Kudos
Message 4 of 4
(4,168 Views)