LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using ActiveX Word._Application with LabView2017 64Bit Win10

Hello everybody,
I'm trying to read a specific tabel field from a Word document.
word_application_table.png

When I run my test VI I get an error 3005: "Automation Open: Object specified is not creatable in" from the "Automation Open"
Sometimes when I set the automation refnum to "Word._Applicaion" LabVIEW collapses out of a unnokwn issue.
But it works to open the document in an ActiveX Container on the Front Panel.

Does annyone know how to fix this issue?

Edit:
I tried the same thing with excel and the same problems occur, LabVIEW crashes when I set the refnum.
But the Excel example works without any problem.


Thank you,

Lucas

0 Kudos
Message 1 of 2
(1,486 Views)

The Good News is that you are not entirely crazy.  I don't have LabVIEW 2017 on this laptop, but am running LabVIEW 2019 (32-bit) with Office and have Microsoft Word (365) and Excel (365).

 

I can open and run your Snippet (thanks for attaching executable LabVIEW code) and I get the same error.

 

If I copy (to a fresh VI) your code from Error In to Automation Open, and connect Error Out and your Word._Application  Active-X reference, I get the same error.

 

However, if I "create them from scratch", dropping an Automation Open (I use Quick Drop, since I'm uncertain where this function is located on the Palette), right-click the Automation Refnum input and choose Word._Application from the Drop-down, this runs without a problem!

 

I'm "guessing" that the problem is with the Refnum.  Have you, by any chance, gone through an Upgrade or Replacement of Office with Office 365?  Alternatively, could it be that LabVIEW 2017 ships with Word Refnums that don't work with whatever version of Office you have installed?  [I can certainly say the Refnum on your Snippet doesn't work with my 2019 Version of LabVIEW and whatever-version of Word 365 I have installed.]

 

 Bob Schor

0 Kudos
Message 2 of 2
(1,451 Views)