コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
7554 ビュー

Hi , i have created a xlsx file and need to open as downloadable when i click on button in python how to achieve this ?

アバター
破棄

Do you have a solution for your problem ?

最善の回答

In python there is a package called cStringIO, which is used for buffering.write the xlsx file data to the buffer(encode using base64) variable and then write this value in the buffer variable to a binary field in openerp.

アバター
破棄
著作者

Thanks for your reply, but my requirement is to display the file and not to store in database how can i achieve this

from where you are creating the xls file?can you give some more details? is it related to openerp?

著作者

i am fetching the information from view class and creating the xlsx file

最善の回答

Take a look at the module that exports the current view to XLS:

https://code.launchpad.net/~domsense/web-addons/7.0-web_export_view

アバター
破棄
関連投稿 返信 ビュー 活動
1
2月 23
1963
1
3月 15
5268
0
5月 23
66
2
9月 24
3559
1
1月 23
17039