Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Word documents
Message
From
05/10/2000 11:29:32
 
 
To
05/10/2000 10:05:05
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00425284
Message ID:
00425346
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform