Thomas wrote in message
news:39a61ba0@newsgroups.ni.com...
>
> I must read Data from a formatted Word Document.
> When i open the text with the "read text" i become a lot of trash, no text
>
> Thanks for help
It'd help to know why you need to read the text.
You can't simply read a Word document from Labview, because it's not plain
text and, AFAIK, nobody has seen the need to write a text extractor to allow
Labview to extract text from a Word doc.
The simplest would be to save the documents from Word as plain text, that
can then be read by Word. Whether this is suitable or not depends on the
purpose.
Alternatively, you can use ActiveX to take control of Word and open the
document. From there you can retrieve text either an indi
vidual character or
a time, a line at a time (or sentence? I forget) or a paragraph at a time,
starting from a position that you define. You can also write text in the
same way- though I've not figured out how to read and write formatting
information (at some point I want to write an app that uses invisible marker
codes that it embeds in a document in order to manipulate it.).
I wrote a quick VI a while ago to test the various ways of retrieving text,
but I didn't bother to save it. If you need to take the ActiveX approach and
can't figure out where to start by yourself I can probably get some time to
cobble another together. I recall I figured it out just by the properties
and methods, without having to dig through the documentation, so it should
be fairly trivial.