In this thread: http://groups.google.com/group/web2py/browse_thread/thread/bb5abc07b692a554/ AppReport was mentioned. I downloaded the plugin and followed the instructions in the Examples: https://github.com/lucasdavila/web2py-appreport/wiki/Docs-and-examples
This example results in an error: def custom_report(): html = """ <html> <body> <table> <thead> <tr> <th>Author</th> <th>Email</th> <th>Twitter</th> </tr> </thead> <tbody> <tr> <td>Lucas Davila</td> <td>lucass...@gmail.com</td> <td>@lucadavila</ td> </tr> </tbody> </table> </body> </html>""" return plugin_appreport.REPORTPYFPDF(html = html, title = 'my custom report using the plugin appreport') Traceback (most recent call last): File "/Library/Python/2.5/site-packages/web2py/gluon/restricted.py", line 192, in restricted exec ccode in environment File "/Library/Python/2.5/site-packages/web2py/applications/reports/ controllers/default.py", line 106, in <module> File "/Library/Python/2.5/site-packages/web2py/gluon/globals.py", line 145, in <lambda> self._caller = lambda f: f() File "/Library/Python/2.5/site-packages/web2py/applications/reports/ controllers/default.py", line 51, in custom_report return plugin_appreport.REPORTPYFPDF(html = html, title = 'my custom report using the plugin appreport') File "/Library/Python/2.5/site-packages/web2py/applications/reports/ models/plugin_appreport.py", line 109, in REPORTPYFPDF pdf_builder = plugin_appreport_module.libs.appreport.pdf_builder.PdfBuilderPyfpdf(report = self._get_report_instance(kargs)) AttributeError: PluginAppreport instance has no attribute '_get_report_instance' How would I use App Report when these are my function and view: Controller: def classtimesweek(): rows=db((db.lesrooster.bedrijf_id==1)&(db.lesrooster.dag_id==db.dag.id)&(db.lesrooster.level_id==db.level.id)).select(db.lesrooster.ALL,db.dag.dag,db.level.level,orderby=db.lesrooster.dag_id| db.lesrooster.tijd) return dict(rows=rows) View: <table id="init" class="display" style="margin-top: 12px;"> <thead> ... </thead> <tbody> ... </tbody> </table> Kind regards, Annet