MS word文档生成器 [英] MS word document generator

查看:131
本文介绍了MS word文档生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

有没有很好的库可以使用Python生成word文档。


截至今天我生成一个HTML文档然后打开它与MS

Word。

但问题是我无法控制

文件中的页面并且由于输出看起来很糟糕。


我一直在使用reportlab的platypus来生成PDF文档。

它是一个很好的应用程序,允许控制段的页面

以编程方式。


我想知道是否有任何库作为reportlab生成单词

文件。


谢谢,

/ R

解决方案

Raja Raman Sundararajan写道:

我想知道是否有任何库作为reportlab生成word
文件。




如果你在Windows上,为什么你不用单词吗?你可以用Python把它称为


-


hilsen /问候丹麦Max M

http://www.mxm.dk/

IT的疯狂科学


电话:+45 66 11 84 94

手机:+45 29 93 42 96


Raja Raman Sundararajan写道:

大家好,
有没有很好的库可以用Python生成word文档。

截至今天我正在生成一个HTML文档,然后用MS打开它。
但问题是我无法控制
文档中的页面,结果是输出看起来很糟糕。

我一直在使用reportlab的platypus来生成PDF文档。
它是一个很好的应用程序,它允许以编程方式控制页面的各个部分。

我想知道是否有任何库作为reportlab生成单词
docum ents。




PyRTF如何生成MS-Word

的富文本格式文档?感谢Simon Cusack的努力(嗨西蒙)。


参见 http://cheeseshop.python.org/pypi/PyRTF/0.45

Tim C


您好Tim,

感谢您的PyRTF建议。我现在正在检查它

:-)

/ R


Hello guys,
Is there any nice library to generate word documents using Python.

As of today I am generating a HTML document and then open it with MS
Word.
But the problem is that I am not able to control the pages in the
document and as a result of it the output looks terrible.

I have been using reportlab''s platypus to generate PDF documents.
Its a nice application which allows controlling segments of the pages
programatically.

I was wondering if there was any library as reportlab to generate word
documents.

Thanks,
/R

解决方案

Raja Raman Sundararajan wrote:

I was wondering if there was any library as reportlab to generate word
documents.



If you are on Windows, why dont you use word for it? You can call it
from Python.
--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT''s Mad Science

Phone: +45 66 11 84 94
Mobile: +45 29 93 42 96


Raja Raman Sundararajan wrote:

Hello guys,
Is there any nice library to generate word documents using Python.

As of today I am generating a HTML document and then open it with MS
Word.
But the problem is that I am not able to control the pages in the
document and as a result of it the output looks terrible.

I have been using reportlab''s platypus to generate PDF documents.
Its a nice application which allows controlling segments of the pages
programatically.

I was wondering if there was any library as reportlab to generate word
documents.



How about PyRTF to generate Rich Text Format documents which MS-Word
will lap up? Thanks to the efforts of Simon Cusack (hi Simon).

See http://cheeseshop.python.org/pypi/PyRTF/0.45

Tim C


Hi Tim,
Thanks for your PyRTF suggestion. I am checking it out now
:-)
/R


这篇关于MS word文档生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆