06-03-2019 01:16 PM
Hello,
I wrote a code that reads specific tables from MS Word, and displays it on an array and a table in LabVIEW. However, I noticed that the numbers that are auto generated for the Test Number, are not being displayed. I can't fix the problem, I've been hooked to my computer for hours trying to figure it out.
I have attached the VI and a Word doc here. Any help would be really appreciated!
Thank you!
Solved! Go to Solution.
06-03-2019 03:20 PM - edited 06-03-2019 03:22 PM
Those test numbers are cross references, hyperlinks if you will, and not actually text. I don't claim to be an expert but it's how Word organizes a document structure for maintaining locations for indexes, cross references, citations, etc. If you delete them and type it in manually, your code will read them properly.
06-03-2019 03:39 PM
You have spent a lot of time on this VI, trying to read a table from Word. I answered one of your questions over a week ago and it doesn't appear you have progressed very far. Maybe there is a better way to achieve your end goal here.
IMHO, Word is horrible for doing anything table-related. Have you tried using Excel? RGT has an Excel function called Excel Get Data that takes a start/end cell location and returns a data array of the type of your choosing. All of your code would be replaced by a single, NI-provided VI. Excel is much better at handling tables so why not take advantage of that.
06-04-2019 01:00 PM
Hi aputman,
Yes you did help me with an issue I was facing, thank you. I haven't worked on the code since because I had other projects that needed immediate attention.
As for Excel, yes I have created codes that extract data from Excel and as you said, it is much easier. However, this project required me to extract data from tables in MS Word.
Thank you for all your help!