can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Krishnakant Mane
hello. I have a requirement where I need to generate spreadsheet type reports as well as integrating pdf reports into my web app. I should be able to print them from my browser. Some of them are generated dynamically so I will jsonify my pylons method to give out the data, but are there some li

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Thomas G. Willis
For server side, there's report lab http://pypi.python.org/pypi/reportlab for client side, google visualization might work for you. http://code.google.com/apis/visualization/documentation/gallery/table.html there's a python library to help build the data structures that the js expects. http://

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Krishnakant Mane
On Tuesday 13 April 2010 11:13 PM, Thomas G. Willis wrote: For server side, there's report lab http://pypi.python.org/pypi/reportlab I have used report lab before to generate pdf but I did not quite understand how it will help at the server side with my pylons app? Is there a way to render

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Thomas G. Willis
On Tue, Apr 13, 2010 at 2:07 PM, Krishnakant Mane wrote: > On Tuesday 13 April 2010 11:13 PM, Thomas G. Willis wrote: >> >> For server side, there's report lab >> >> http://pypi.python.org/pypi/reportlab >> I have used report lab before to generate pdf but I did not quite >> understand how it will

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Krishnakant Mane
On Tuesday 13 April 2010 11:48 PM, Thomas G. Willis wrote: I'd have to look at the docs to be sure, but getting the browser to pick it up as a pdf and use the associated application should be a matter of setting the headers correctly on the response. Hey Thomas, Can you plese mail me off li

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Deron Meranda
On Tue, Apr 13, 2010 at 2:18 PM, Thomas G. Willis wrote: > On Tue, Apr 13, 2010 at 2:07 PM, Krishnakant Mane wrote: >> On Tuesday 13 April 2010 11:13 PM, Thomas G. Willis wrote: >>> >>> For server side, there's report lab >>> >>> http://pypi.python.org/pypi/reportlab >>> I have used report lab be

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Mike Orr
On Tue, Apr 13, 2010 at 11:23 AM, Krishnakant Mane wrote: > On Tuesday 13 April 2010 11:48 PM, Thomas G. Willis wrote: >> >> I'd have to look at the docs to be sure, but getting the browser to >> pick it up as a pdf and use the associated application should be a >> matter of setting the headers co

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Krishnakant Mane
On Tuesday 13 April 2010 11:59 PM, Deron Meranda wrote: You can send the PDF just as you would any other type of *binary* file, such as an imagedo not attempt to process it as text. Use the content-type header of "application/pdf". Where do I set this header in context to a pylons cont

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Deron Meranda
On Tue, Apr 13, 2010 at 2:55 PM, Krishnakant Mane 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. > And by any c

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-13 Thread Mike Orr
On Tue, Apr 13, 2010 at 11:55 AM, Krishnakant Mane wrote: > On Tuesday 13 April 2010 11:59 PM, Deron Meranda wrote: >> >> You can send the PDF just as you would any other type of >> *binary* file, such as an imagedo not attempt to process >> it as text.  Use the content-type header of "applica

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-14 Thread Krishnakant Mane
On Wednesday 14 April 2010 12:20 AM, Mike Orr wrote: It's not off topic. I have a client who renders PDF in Pylons, and I may have to do it myself someday. I don't remember offhand if he's using ReportLab or some other library, but I'll check tonight. I am already using reportlab and it wor

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-14 Thread Krishnakant Mane
On Wednesday 14 April 2010 01:17 AM, Deron Meranda wrote: On Tue, Apr 13, 2010 at 2:55 PM, Krishnakant Mane 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

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-14 Thread Mike Orr
On Wed, Apr 14, 2010 at 2:44 AM, Krishnakant Mane wrote: >> By the way, if the PDF is already in a file with a .pdf extension, you >> can use paste.fileapp to send it, which saves some work. >> > Thanks a lot!  the files are indeed getting saved as .pdf so I guess the > fileapp will directly send

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-14 Thread Mike Orr
By the way, my client is using ReportLab to generate PDFs, the same as the other developer was. -- Mike Orr -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-15 Thread Michael Brickenstein
We also use reportlab in RUM to generate pdf's with landscape tables of data. No complaints. It is a general pdf framework, so not always "supereasy" (was a little bit difficult to find out, how to register a specific font for bold text), but it also seems quite mature. Cheers, Michael On 15 Apr.,

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-15 Thread Krishnakant Mane
Good, so now I am left to just hack out the ods related problem. It will be great if I can send the spreadsheet across to browser. The browser may inturn open calc and display the spreadsheet. Happy hacking. Krishnakant. On Thursday 15 April 2010 02:14 PM, Michael Brickenstein wrote: We als

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-15 Thread Michael Brickenstein
Am 15.04.2010 um 11:18 schrieb Krishnakant Mane: > Good, so now I am left to just hack out the ods related problem. > It will be great if I can send the spreadsheet across to browser. The > browser may inturn open calc and display the spreadsheet. For spreadsheets the python standard library i

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-15 Thread eneely
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

Re: can any one recommend a good library for generating printable reports for my pylons web app?

2010-04-15 Thread Krishnakant Mane
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