[web2py] Re: Export result set to PDF file

2011-05-19 Thread Neveen Adel
Thanks a lot Anthony :) On May 18, 7:15 pm, Anthony wrote: > I haven't tried it, bu there's a 'generic.pdf' view template. Looks like it > takes the HTML inside the 'content' div of a rendered HTML template and > converts it to markmin and then to PDF. So, maybe try: > > def export_PDF(): >    

[web2py] Re: Export result set to PDF file

2011-05-18 Thread Anthony
I haven't tried it, bu there's a 'generic.pdf' view template. Looks like it takes the HTML inside the 'content' div of a rendered HTML template and converts it to markmin and then to PDF. So, maybe try: def export_PDF(): results=db().select() return dict(results=results) Then define