使用Python在OpenOffice / Microsoft Word中格式化输出 [英] Formatted output in OpenOffice/Microsoft Word with Python
问题描述
有没有办法使用Python生成这样的报告?我觉得应该有办法使用Microsoft Word / OpenOffice模板和Python来做到这一点,但我找不到任何先进的,以获得良好的格式。有什么建议吗?
Word就会把它作为一个Word文档打开,而大多数用户都不会比较聪明。除非技术人员可能会说,我的这个很小Word文件! :)
I am working on a project (in Python) that needs formatted, editable output. Since the end-user isn't going to be technically proficient, the output needs to be in a word processor editable format. The formatting is complex (bullet points, paragraphs, bold face, etc).
Is there a way to generate such a report using Python? I feel like there should be a way to do this using Microsoft Word/OpenOffice templates and Python, but I can't find anything advanced enough to get good formatting. Any suggestions?
A little known, and slightly evil fact: If you create an HTML file, and stick a .doc extension on it, Word will open it as a Word document, and most users will be none the wiser.
Except maybe a very technical person will say, my this is a small Word file! :)
这篇关于使用Python在OpenOffice / Microsoft Word中格式化输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!