LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

illegal operation after open MS Word

I use activeX to open a MS Word with my document. After Word opened my document, I manually review my document and manually click File-Print. I get illegal operation issue.
1. I already close the ActiveX refence to MS Word in my labview program.
2. but if I don't close the ActiveX reference, will this cause some issues later, what if I manually review, print and manually exit/close MS Word, will my ActiveX reference in LabView close by itself?
0 Kudos
Message 1 of 4
(3,000 Views)
Hi,
Could you post your VI that you use? I created a simple VI that just opens a Word document. I couldn't reproduce the error. Do you get the Print window to open at all? Does LabVIEW report any errors in the error handlers?

The attached VI was created with LabVIEW 6i.

Zvezdana S.
0 Kudos
Message 2 of 4
(3,000 Views)
Hello Zvezdana,

Attached is a zipfile
0 Kudos
Message 3 of 4
(3,000 Views)
I didn't reproduce the error, and was able to print the document.
However, I do see that you are not checking for all the errors. There are many error clusters out of property nodes and Automation Close functions that are not wired. Also, double check that you are not trying to close some of the activeX references on more than one place.
Since the error happens after some operation in Word directly, then it has to be caused by Word or its activeX reference somewhere in memory.

Zvezdana S.
0 Kudos
Message 4 of 4
(3,000 Views)