문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top