Tech Support > Computers & Technology > Software & Applications > Convert DOC to RTF
Convert DOC to RTF
Posted by Alan on September 16th, 2003


Are there any programs that will convert Word DOC files to RTF
files?

thanks

AC



Posted by dkg_ctc on September 16th, 2003


Alan <not@real.ok> wrote in news:mesnews.844d7d39.b0aecb52.0.1672
@real.ok:

If you mean in batches, I'm not aware of one (although I'm sure there
are some out there). If you mean a few individual documents, you can
open the .DOC file in Wordpad, and then save it as RTF.

Posted by Fanman Uk on September 17th, 2003


On Tue, 16 Sep 2003 18:21:52 -0400, Alan <not@real.ok> wrote:

program I found for making batch conversions of MS doc to rtf was
CZ Document Converter. Unfortunately it is NOT freeware (


Fanman Uk.

To reply by email remove the "fanman."

Posted by Alan on September 17th, 2003


"dkg_ctc" wrote :


I was hoping to do it in batches, but the Wordpad way works fine.
Thats the way I've been doing it up to now.

Alan




Posted by Sietse Fliege on September 17th, 2003


Alan wrote:

I take it that you do not have Word?
Because Word lets you do it with a Wizard Batch conversion.

--
Regards,
Sietse Fliege


Posted by Alan on September 17th, 2003


"Sietse Fliege" wrote :


Nope, no Word.


Alan




Posted by Frank Hahn on September 17th, 2003


Paul@fanman.commark.freeserve.co.uk (Fanman Uk) wrote in
news:3f67a7c8.64197879@news.tiscali.co.uk:

of OpenOffice have the ability to create macros. Could a macro possibly
be written within OpenOffice to help with this conversion?

--
Frank Hahn

Posted by Adrian Carter on September 17th, 2003


I recently found out about AutoIt ( http://www.hiddensoft.com/AutoIt/ ) via
this NG,
and am enjoying finding out its many useful capabilities. I think it very
likely that you
could use it to build a Word to RTF converter, by automating the process of
opening your doc(s) in WordPad and saving into RTF.
I will have a go at this myself; if successful I will post the script that I
come up with.

HTH,
Adrian Carter

"Alan" <not@real.ok> wrote in message
news:mesnews.844d7d39.b0aecb52.0.1672@real.ok...


Posted by Adrian Carter on September 17th, 2003


An AutoIt script to convert Word to RTF in batches was not so hard.
Here it is, hope it helps.

Adrian

; ==============================================
; AutoIt script to convert Microsoft Word documents to
; rich text format using WordPad. Each RTF file is stored
; in the same directory as its originating MS Word document,
; and has the same file name with a RTF extension.
; The list of Word document names is acquired from the
; clipboard - preferably fully qualified.
; In the interests of brevity for posting to the NG, this
; script performs no error checking - eg. if RTF file
; already exists. It also assumes that Word documents have
; a file extension of ".DOC". Anyone wishing to make serious
; use of this script is advised to add some minimal error
; processing.
;
; I have carried out a reasonable level of testing but
; cannot be held responsible for any adverse consequences
; arising from use of this script. Use at your own risk.
;
; Oh yes, one more caveat. I built and tested this under
; Windows 2000 Professional. I am unable to say how or
; whether it will perform under other flavours of Windows.
;
; Adrian Carter
; Sept 18, 2003

; ==============================================
; Look for window title text anywhere in string
SetTitleMatchMode, 2
; Capture list of Word doc names from clipboard;
SetEnv,TheDocs,%Clipboard%
; Start WordPad & wait for it to start
Run, "C:\\Program Files\\Windows NT\\Accessories\\WordPad.exe"
WinWaitActive, - WordPad

Start:
; Extract next Word document
StringLen, L, TheDocs
IfEqual, L, 0, GoTo, ExitPoint
StringGetPos, P, TheDocs,\n
IfEqual, ErrorLevel, 1, GoTo, LastOne
SetEnv, RemLen, %L%
EnvSub, RemLen, 1
EnvSub, RemLen, %P%
EnvSub, P, 1
StringLeft, NextDoc, TheDocs, %P%
StringRight, Remainder, TheDocs, %RemLen%
StringReplace, NextRTF, NextDoc,.doc,.rtf
SetEnv, TheDocs, %Remainder%

; Up to here, we were just building filenames.
; Now we get WordPad to open the doc and save the rtf
GoSub, Convert
GoTo, Start

LastOne:
; Set doc & rtf names
SetEnv, NextDoc, %TheDocs%
StringReplace, NextRTF, NextDoc,.doc,.rtf

; Execute conversion
GoSub, Convert
GoTo, ExitPoint

Convert:
; Shortcut to File|Open
Send,^o
; Type name of Word doc
Send,%NextDoc%
; Press ENTER key
Send,{ENTER}
; Shortcut to File|SaveAs
Send,!fa
; Type name of RTF file
Send,%NextRTF%
; Press ENTER key
Send,{ENTER}
Return

ExitPoint:
; Close WordPad
Send,!fx
Exit
; ==============================================

"Adrian Carter" <bitz@bucketz.nowhere> wrote in message
news:CZX9b.108193$bo1.2550@news-server.bigpond.net.au...



Similar Posts