[TurboGears] Re: turbogears and jasper reports?
On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi, i was just wondering if someone had already used turbogears and generate reports via jasper reports? it would be nice if the community can produce an article about this :) jasper reports is written in java and doesn't provide any documentation (on my quick perusal) of how to use it from anything except for java. Basically you'd have to get a python function that could generate the sort of report you'd want and then call it either within a page controller or using the scheduler module. The hard part here is the first part, I'll happily help you with the second part but the first is way too much effort for something that few if any in the python community use. If TG ran on jython, integration would be fairly simple, but I doubt that TG will run on jython. I believe that python's report generator is ReportLab. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: turbogears and jasper reports?
If TG ran on jython, integration would be fairly simple, but I doubt that TG will run on jython. I believe that python's report generator is ReportLab. If you need a more high level report generator, for some of our projects we use openreport (http://openreport.org) with tinyreport (http://tinyreport.org) The first one is based on reportlab and is a RML (Reportlab Markup Language) to PDF converter. This allows you to write your PDF in a simple language adapted to PDF. The second one makes the transformation SXW (the openoffice format) to RML and is able to process python expressions. This allows you to create your reports in OpenOffice and automate the PDF creation process. The report generator for the end-user do not need OpenOffice. Here is a flash animation demo: http://en.tinyerp.com/demo02_5.html of a project that uses this method in Python. Expressions between brackets are python expressions that uses the database through an ORM. I already used Jasper Report and think this method is much more powerfull to render reports that uses several tables. -- Fabien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: turbogears and jasper reports?
thanks for the resource links :) , had i known that its difficult to integrate jasper reports , i wouldn't have waste figuring it out.. LoL.. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: turbogears and jasper reports?
[EMAIL PROTECTED] wrote: hi, i was just wondering if someone had already used turbogears and generate reports via jasper reports? it would be nice if the community can produce an article about this :) I have recently implemented a TurboGears application that uses BIRT, which is available at http://www.eclipse.org/birt/, for displaying reports. My technique was to write a simple Java Servlet that can produce HTML reports, and then I interface my TurboGears application with that by treating the Servlet like a third-party web service. I make requests to it, pull out the HTML that I need, and then shove the content out via AJAX. It was pretty easy to do. I am doing a little bit of fancy dancing with Queue objects, a spawned thread, regular expressions, and MochiKit in order to make everything perform nicely, but it seems to work pretty well. You should be able to get something really basic working if you ignore performance at the beginning, and then optimize later :) -- Jonathan LaCour http://cleverdevil.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: turbogears and jasper reports?
Hi, When I first coded my website in Java I had created a bunch of reports in jasperreports. In order to re-use them I created a small python script that parses the jrxml file and output a pdf thanks to reportlab. Our reports are really simple (not multi pages), so it might not work for you... Here's the link http://rapidshare.de/files/30641807/reportfactory.py.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---