Board index » delphi » word *.doc files to raw text *.txt file

word *.doc files to raw text *.txt file

Hi,

Would anyone know a way (or of a component) of automatically converting word
documents to standard, raw, text data.
I have to convert (and import into a database) about 2000 files. Doing this,
either manually, or by using OLE automation to open, copy, paste the data is
going to be an extremely laborious task.

Any help GREATLY received,
Thanks  Mark.

 

Re:word *.doc files to raw text *.txt file


If you are importing the files straight into a database why not use
TBlobField.LoadFromFile().  You could test for file existence in your source
directory and then move the file to a success directory continuing the loop
until the source directory is empty.

Peter

Quote
"Mark Button" <mbut...@atimwp.com> wrote in message

news:3aa3ba4f$1_1@dnews...
Quote
> Hi,

> Would anyone know a way (or of a component) of automatically converting
word
> documents to standard, raw, text data.
> I have to convert (and import into a database) about 2000 files. Doing
this,
> either manually, or by using OLE automation to open, copy, paste the data
is
> going to be an extremely laborious task.

> Any help GREATLY received,
> Thanks  Mark.

Re:word *.doc files to raw text *.txt file


<<Mark Button:
Doing this, either manually, or by using OLE automation to
open, copy, paste the data is going to be an extremely
laborious task.

Quote

I don't know a component that does this. Automating it, the
only real chore would be getting the names of the files to
open - after that, opening the docs in Word and saving them
as text files would be very simple (no need to cut and
paste).

--
Deborah Pate (TeamB) http://delphi-jedi.org

  Use Borland servers; TeamB don't see posts via ISPs
  http://www.borland.com/newsgroups/genl_faqs.html

Other Threads