LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get text and picture from a word file

Hi,
 
I want to extract some text as well an image from a word file in Labview.
The image is a pin diagram specifying the connections to be made before the start of the test.
 
How can i go about it?
 
 
0 Kudos
Message 1 of 5
(3,309 Views)

Does the text and picture have to be stored in word format?  If you store it in HTML it is easily parsed by tag.  You should be able to also get this information form a word file but you will probably need to use the office/word ActiveX interface.  I have not ttried this with word though.  In the next version of office there will be an XML based file format which will facilitate such requests.  The current .doc is much less open.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 5
(3,298 Views)
One other thought, you can embed a word container and open the doccument If you want to display it.  But I would still go away from using word as the storage format if you want to programatically interface with the data.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 5
(3,295 Views)

I am afraid, it is a word document. This is actually a user manual, which can be changed later on by the user, if needed.

I think we can get the text content using bookmarks. But how to go about extracting the image in labview?

Can you suggest something?

Thanks for your help!!Smiley Happy

0 Kudos
Message 4 of 5
(3,280 Views)

I hav not done this with word because the format of the .doc is not provided  so parsing it will require an interface.  Your best shot is looking at the activeX interface which is not well supported in work (unlike excel which is easily integrated).  Maybe there is some clues on activeX communication with MS word on MSDev.  Sorry I cant be much help here.  Again Office 2007 will be using a more open format which will allow for simple parsing of an XML based markup format (I went to a developers conference last year which addressed this) and there should be numerous .net object for working with this new format.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 5 of 5
(3,275 Views)