LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto generated Numbers on Word not displaying on LabView array

Solved!
Go to solution

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!

Download All
0 Kudos
Message 1 of 4
(2,602 Views)
Solution
Accepted by topic author taasin19

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.

aputman
0 Kudos
Message 2 of 4
(2,567 Views)

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. 

 

2019-06-03_15-38-47.png

aputman
0 Kudos
Message 3 of 4
(2,559 Views)

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!

0 Kudos
Message 4 of 4
(2,533 Views)