LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting and importing text from Word

Hi..
 
I am interested in importing text from Microsoft Word into labview.
 
The text will be identified by a particular 'style'. I have seen examples of reading text marked by 'bookmarks' however this doesn't appear to be sufficient or flexible enough for this application.
 
I have tried adapting the 'bookmark' code (using different property/invoke nodes) but can't seem to find something that works in a similar way.
 
Just wondering if anyone has already tried something similar.
 
Any help is much appreciated.
 
Regards,
Mike
 
(Labview 8.2.1 + Report Generation Toolkits)
0 Kudos
Message 1 of 6
(3,545 Views)
mikefoo,

Can you tell us the particular example you are using?  I have been unable to find it based upon the information you have provided.
Mark
NI App Software R&D
0 Kudos
Message 2 of 6
(3,515 Views)

Hi Mark..

I have linked the example below..

http://zone.ni.com/devzone/cda/epd/p/id/2214

 

Mike

0 Kudos
Message 3 of 6
(3,499 Views)
mikefoo,

Thanks for posting the example.  Now that I have a better understanding of what example you have looked at could you please expand upon what you mean by style?  It sounds like you are trying to write a pattern recognition program, which can be very challenging. 
Mark
NI App Software R&D
0 Kudos
Message 4 of 6
(3,476 Views)

Hi Mark,

The plan was to be able to sift through text in a Word document for blocks of text that match a particular 'style' (determined by us) and import the text into Labview to populate VI descriptions/free labels etc.

I have adapted some code I have found to be able to cycle through table rows/columns and be able to match text/string patterns, however matching the 'style' property should make this operation a little cleaner or perhaps give us more control over what strings are matched.

 

Mike

0 Kudos
Message 5 of 6
(3,457 Views)
mikefoo,

Have you done any research into text pattern recognition to give you some algorithms to start with?  The only pattern recognition VIs in LabVIEW are for images and motion. 
Mark
NI App Software R&D
0 Kudos
Message 6 of 6
(3,436 Views)