LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

doc files [bitmaps & tables]

I would like to search a .DOC file with CVI.  The file contains bitmaps and tables as well as text.  I need to access a cell in a table.  Has anyone ever done that ?
0 Kudos
Message 1 of 2
(3,019 Views)

Lapman, is that you?

 

I have indeed done this very thing.

 

I would run word using the CVI ActiveX interface to it, there can be some issues with this based on the version of CVI, Word, etc.

 

I would cause a Word macro to run that would save the .doc file to a temoprary .txt file.  This stripped out all of the bit maps and formatting, and converted tables to comma separated values as I recall.

 

Then I used CVI regular expression functions to parse my way through the temporary text file and find the data I wanted.   CVI's regular expression  implementation leaves something to be desired (I seem to recall that it has limitations in parsing line feeds) but I was able to do it.

 

I sometimes refer to that project as the single stupidest application that I've ever written (its job was to "read" a test report that was a word doc and extract numeric resutls from it.) but I guess everyone finds themselves in this situation from time to time maybe.

 

Menchar

 

 

Message Edited by menchar on 08-24-2009 12:05 PM
0 Kudos
Message 2 of 2
(2,986 Views)