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: 

DDE word

How can I read a text of a Mcrosoft Word file with Labview? I used DDE request
but I don't Know what I had to write in "ITEM" box. Whatever I write in "item"
box error 14012 appears!
I don't Know Visual Basic.

Please answer me soon!
0 Kudos
Message 1 of 2
(2,694 Views)
You cannot use DDE for that application. DDE allows bi-directional communication
between two applications. You would have to have a macro running in Word to send
the text back through the DDE channel. Active-X will do what you describe, but it
programs in LabView just like in VB.

Active-X automation will allow you from LabView to:
Start MS Word
Open any MS Word file
read any components of the file back to LabView.

You may have to specify the exact part of the document, such as
Document.Table(1).Row(2).Column(3)
or Document.Paragraph(1). Sentence(2).Word(3)

Search the Examples in LabView and look at the Active-X / Write Table to Excel
Demo

--
Michael Munroe Mailto:mmunroe@abcdefirm.com
A Better Complete Development Engineering Firm
San Mateo, CA 94403 h
ttp://www.abcdefirm.com

Alessandra P wrote:

> How can I read a text of a Mcrosoft Word file with Labview? I used DDE request
> but I don't Know what I had to write in "ITEM" box. Whatever I write in "item"
> box error 14012 appears!
> I don't Know Visual Basic.
>
> Please answer me soon!
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.0, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 2 of 2
(2,694 Views)