I have written a Perl script that reads some data and generates an OpenOffice Writer/OpenDocument file for that data. Can I also construct a Microsoft Word/Office Open XML document?
Asked
Active
Viewed 1,315 times
3
-
I'm sure you mean OpenXML. There is no such thing as *OpenOffice Word*. – Dirk Vollmar Jul 30 '10 at 18:20
-
@0xA3, I think he means a Word document in OpenOffice(.org). – Axeman Jul 30 '10 at 19:02
-
@0xA3:That is what I meant. Sorry for the confusion. – name_masked Jul 30 '10 at 19:43
2 Answers
3
To read MS Word documents you can use Open XML SDK 2.0 for Microsoft Office
You may have to write a wrapper in order to use it with your Perl script.

Shiraz Bhaiji
- 64,065
- 34
- 143
- 252
0
OpenOffice (or LibreOffice) has a utility called unoconv that can be used to convert between formats. I believe it does the equivalent of opening the input document in OpenOffice and then saving it as the output format. You say you script already produces opendocument format, so you can try using unoconv to produce a Word document from that.

Ryan C. Thompson
- 40,856
- 28
- 97
- 159