View Single Post
  #2 (permalink)  
Old 09-05-2007, 06:20 AM
Tim Slattery
Newsgroup Contributor
 
Posts: n/a
Re: bach convert doc files to text format files(eg.xml or html) and vice versa.

kang <kang@hao.com> wrote:

>I have to do some search and replace jobs for bunch of doc files.
>I have a idea to do the jobs in a handy way.
>Convert them to text formats and do the search and repalce jobs and
>convert back to the doc formats.


I see a problem right away. When you convert from doc to text you lose
whatever formatting you specified in the doc. When you convert back
from text to doc, there's no way to recover that information.

>As I know Word doesn't support the batch converting job, is there a
>utility or something for batch converting?


I would investigate Word's support for VBA (Visual Basic for
Applications). You should be able to write something to perform your
task in that language, and run it right inside Word.

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
Reply With Quote

 
Old 09-05-2007, 06:20 AM