08-21-2009 04:50 PM
08-24-2009 02:04 PM - edited 08-24-2009 02:05 PM
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