On Thursday 15 April 2010 09:13 PM, eneely wrote:
I do something similar with engineering data where I separate the data
into tabs for different temperatures and data types and send the
spreadsheets back to the client.  I use a module called xlwt to do all
of the spreadsheet formatting in Pylons before I send the data back
using a CStringIO output buffer. This seems to work whether the user
is on Windows or Linux at opening either Excel or Open Office.

How to do this with odf?
I am particular with the format because excel is a proprietory standard and one never knows when microsoft can have a paitent or any related issue.

The response headers are like this:
response.headers['Content-Type'] = 'application/vnd.ms-excel'
response.headers['Content-Disposition'] = 'attachment;
filename="spreadsheet.xls"'

And then the output buffer is returned using:
return output_string

Can you tell me how you do for open office spreadsheet (ods)

thanks a million.
Happy hacking.
Krishnakant.

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to