2013-06-05 21 views

回答

2

我不知道這是否是你的解決方案,我用pod在我的漂亮成績的項目,我從來沒有測試,包括圖像,但據記載:

Quoting pod doc

enter image description here

集成外部文件或圖像到結果:文檔功能

文檔功能允許您將ODT結果 中的圖像或文件集成到外部來源中。這裏是功能 簽名;下表說明了每個參數。

EDITED DUE OP COMMENT

我來測試它工作得很好,也爲循環。在這裏你可以看到蟒蛇(或Django的)呈現以文檔與圖像:

>>> from appy.pod.renderer import Renderer 
>>> taula1 = [1,2,3] 
>>> taula = [ taula1, taula1 ] 
>>> renderer = Renderer('report.odt', globals(), 'result.odt') 
>>> renderer.run() 

ODT:

enter image description here

結果:

enter image description here

+0

您好,感謝您的回答。似乎是一個有趣的項目。 –

+0

它適用於圖像,但不幸的是,它不支持嵌套循環,也不支持循環中的一個記錄的值跨越多個錶行。 –

+0

@RobertDollinger,你錯了。見編輯的答案。 – danihp