LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read word file content

Hi All,
 
I want to read some content from a word file in my LabVIEW application.
Please find the attached, sample doc file from which i would like to extract text under "2.1 Test Number 1 - Setup Details"
 
This is just a sample doc file. Actual file size is too large. (around 200 pages).
I would like not to use any bookmarks, as this file can be edited by the user. Thus there is possiblity of those bookmarks been deleted in due course.
 
Please guide.
Thanks
 
Harish
0 Kudos
Message 1 of 2
(2,682 Views)
Hi Harish,
 
If you don't wish to use bookmarks then using the word VI's won't work, the only other way to do this is to open the file as an ASCII file, but as you see if you open the word document under notepad .doc's contain a lot of extra formatting. So if you do use the ASCII features I can't guarantee that it won't a) pick up a lot of errornous data and b) won't crash the ascii function. It would take a lot to do, but if you know the ASCII codes for the word document you could set ASCII VI's to ignore these.
 
If you look at the ASCII examples under "LabVIEW > Help > Examples > File I/O" and give it a try to see if you can get it acting as you wish.
 
Thanks,
Applications Engineer
0 Kudos
Message 2 of 2
(2,650 Views)