Hi, i use pyExcelerator to save a table to an excel file in a wizard and send it to the client: file=StringIO.StringIO() out=mydoc.save(file) return {'data': base64.encodestring(file.getvalue()) , 'file_name': filename} ... <?xml version="1.0"?> <form string="Export"> <image name="gtk-dialog-info" colspan="2"/> <group colspan="2" col="4"> <separator string="Export to Excel" colspan="4"/> <field name="data" readonly="1" colspan="3" filename="file_name" /> <label align="0.0" string="Save this document to a .XLS file and open it with\n Excel." colspan="4"/> </group> </form> .. fields_finish={ 'data': {'string':'File', 'type':'binary', 'readonly': True,}, 'file_name':{'string':'File Name', 'type':'char'} }
With a server running from 5.0 bzr/launchpad, the webclient prompts for a file to be downloaded nicely. On 5.0.10 (last stable download), its puts the encoded value on one big long line in the browser. What could it be? I'm doing it from the exact same browser, the only difference seems to be the web client version. Merci, Sean -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=56637#56637 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
