Hi,
My requirement is to convert MS Word documents to RTF format
documents, without using Word Automation.
For this i am using Text converters that come with MS Word
installation(*.cnv, *.wpc). But for some of the documents the converter
fails to convert documents from MS Word to rtf giving "Invalid Data in
file" error. Trying to convert the document using WordPad also fails,
since Wordpad also uses the same converters and they are failing.
If I try to convert the document using MS Word, it is able to convert
the document to RTF.
Does MS Word use something else to convert documents from DOC to RTF???
I cannot use automation since my application runs in a service context.
If anybody has ever got this error please let me know what needs to be
done to make the conversion work.
Thanks in advance.
Nachi
Herb Tyson [MVP] - 01 Sep 2006 15:36 GMT
Am I correct that you're writing an application that uses Word's text
converters to perform the conversion? This is why you can't use Word itself?
Where are you encountering the error? In using the converter to convert? Or
are you encountering the error when you try to open the resulting rtf file?
If the latter, have you compared the rtf file produced by Word itself with
that produced by using your own application? Perhaps there's some extra bit
of housekeeping that Word is performing.
Also, assuming the latter problem, have you tried opening the rtf file using
something other than Word, such as WordPerfect, which might handle rtf files
differently?

Signature
Herb Tyson MS MVP
http://www.herbtyson.com
Please respond in the newsgroups so everyone can follow along.
> Hi,
> My requirement is to convert MS Word documents to RTF format
[quoted text clipped - 17 lines]
> Thanks in advance.
> Nachi