I believe that text boxes are used in the document. How would I extract the data from these?
>There are a lot of ways to do it; the exact solution depends on the structure of the document. The really simplest way to grab everything from a plain document so that it can be sliced and diced in VFP would be:
>
>oWord=CREATE("Word.Application")
>oQDoc=oWord.Documents.Open("questionnaire.doc")
>oQDoc.Select && Select the entire document
>cText=oWord.Selection.Text && cText has ALL of the text of the document now.
>
>At this point, cText can be parsed.
>
>Now if the document can be formatted to use Textboxes for the data entry portions of the document, then you can grab the information from the textboxes and it'll be easier to parse it into menaingful data.
>
>
>
>>Can anyone tell me if it is possible to extract data from a word document and place it into a text file or DBF. A client of mine has a questionaire, in word, that people fill in. He wants to be able to extract the data on the document and process it.
>>
>>Any help would be great
>>
>>
>>Martin
Martin Folan