On Wednesday 14 April 2010 01:17 AM, Deron Meranda wrote:
On Tue, Apr 13, 2010 at 2:55 PM, Krishnakant Mane<[email protected]>  wrote:
No, the pdf files are going to be 1 page or in rare cases at the most 2
pages.
Definitely no need to mess with byte-ranges then.  That's really only
something to look at once you're getting into the>100 page
documents.

Thanks, I guessed so.

And by any chance is some thing similar possible for open office
spreadsheets?
If you don't need much except rows and columns, your easiest
choice is to just serve up CSV files.  Python even has a csv
module ... http://docs.python.org/library/csv.html

Ah, well, the problem here is that csv will not give me all the features i need. I have to merge cells, and also have different formatting. What I am going to output as a spreadsheet is actually an accounting ledger. In any case I have a python library to generate open office spreadsheet. for the information of all those who would like to know, it is called odfpy and you can install it using easy_install. My questions is, once we have created the ods file with all the data properly formatted, how do we send the ods to the browser. Browser may at its disposal open the calc application to display the spreadsheet from the odf file. But I want to send that file across in the first place.

You may also want to send a content-disposition header,
something like
   Content-Disposition: attachment; filename="data.csv"

So I guess I will need to do some thing similar for ods?

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