From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open an MS Word Document via activex in LabVIEW using Word 2016

This has been asked before but I can't find a post referencing to Word 2016.

 

I have Word 2016 on my PC, when I browse through the activeX class libraries, I cannot find any reference to word.  I have gone through all the relevant looking microsoft libraries including office and nothing obvious to me.

 

My workaround is to use:

https://forums.ni.com/t5/Example-Programs/ActiveX-Open-MS-Word-File/ta-p/3511902

 

However, it would be great to know why I can't find word.application.  Any pointers appreciated.

0 Kudos
Message 1 of 6
(4,380 Views)

Also, when I try to look at the properties of a property node I get the following:

 

no properties.png

 

--> no properties

 

When I connect an activex property node I also get --> no properties, even though it clearly works in the online example.  I am using LabVIEW 2017.  I'm a bit lost.

0 Kudos
Message 2 of 6
(4,370 Views)

 

there's this official snippet from this 2013 knowledge base article, to which I (strangely) can't link

"Read Text from a Microsoft Word Document in LabVIEW"

 

and also

https://forums.ni.com/t5/Community-Documents/Import-Formatted-Text-From-Word-Document/ta-p/3537128

 

I will look into this tomorrow on a computer where I have MS word installed

 

Message 3 of 6
(4,349 Views)

Thanks Alexander,

 

I used the vi you posted to copy content -> text.

 

I found this link : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019KZNSA2&l=en-IE

 

It appears I need to have LabVIEW 64 bit installed for it to allow me to access the 32 bit Word.  I had a similar issue with MySQL, so maybe there is a workaround but personally, I am now downloading 64 bit LabVIEW!

Message 4 of 6
(4,346 Views)

@SeanJ wrote:

It appears I need to have LabVIEW 64 bit installed for it to allow me to access the 32 bit Word. 


This is exactly opposite of what the link says.  The bitness must match.  Are you sure that you have 32bit Word installed? 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 5 of 6
(4,318 Views)

Whoops, I meant 64 bit LabVIEW to access 64 bit word!

0 Kudos
Message 6 of 6
(4,288 Views)