If I was doing it manually, it would be the equivalent of
(a) starting MS Word, opening a doc file, then "SAVE AS .." .TXT then closing MS Word
(b) then running my app against the resulting text file.
I am desperate for suggestions on how to automate step (a) in such a way that the user never sees a MS Word screen.
I need my app to do everything. i.e. The user simply selects a DOC file (via cGetFile("*.DOC", "Select a file to assess", ,) then my app needs to convert it to straight text and analyse the words in the text file.
The resulting text file is not later converted back to a MS Word DOC file or anything involving MS Word.
I don't want to shell out to a 3rd party Word->Txt converter if I can avoid it. The app is to be a low-priced mass market product in their own networked environment and I shall never have any technical contact with any user. All users are expected to have MS Word but, beyond that, I want to keep my app as self-contained as possible. (i.e. without having to register an OCX or change registry entries or anything like that). The users have only the most basic PC skills.
I've no experience with using OLE or interacting with a MS product so I'd be very grateful for any coding suggestions.
Many thanks in advance.
Colin Wisbey