LWN.net Logo

Import/export OpenDocument in Word

Import/export OpenDocument in Word

Posted Sep 15, 2005 21:53 UTC (Thu) by seanyoung (subscriber, #28711)
Parent article: Microsoft Challenges Massachusetts on Open-Format Plan (eWeek)

Microsoft Word exposes a public API which allows you to convert to and from RTF. With such a converter, Microsoft Word would be yet another OpenDocument client. Possibly with conversion errors, so be it. Use OpenOffice if you want it done right.

The API is really quite simple. It is fed a filename and expected to output RTF or the reverse. I've been willing to do this but ripping out the rtf converters of OpenOffice seemed like a bitch.

I think this would be great for OpenDocument.


(Log in to post comments)

Import/export OpenDocument in Word

Posted Sep 15, 2005 22:02 UTC (Thu) by seanyoung (subscriber, #28711) [Link]

For clarity, the open file chooser and save dialog box would have an option for file type Open Document. I don't know about new versions of Word, but older versions even allow you to set the default file type.

Documentation is as usual scattered and incomplete, but nothing you wouldn't expect. I've written a test converter which worked -- at least, the output was always "Hello World!" in rtf. I should be able to find it if anyone is interested.

Import/export OpenDocument in Word

Posted Sep 16, 2005 4:11 UTC (Fri) by gdt (subscriber, #6284) [Link]

I suggest you have a look at the object code for the converters supplied with Microsoft Word. You'll quickly see that the published API isn't the entire API, although the published API is probably enough to do the job. This is possibly because the published API originated with an old version of Word and hasn't been updated since .DOC became the dominant word processing format.

There is no public converter API for Excel or PowerPoint.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds