[reportlab-users] outputting simple multi-page tabular grid of data
murphy2 at speakeasy.net
Fri Apr 29 10:03:38 EDT 2005
I'd like to programmatically produce printable (PDF? Postscript?)
spreadsheet-style output of database queries with these characteristics:
* line borders around cells (i.e. the simple "grid" look)
* simple textual header and footer
* first row should be repeated on each page
* preferably, auto-sizing of columns, but not required
From looking at the documentation and example PDF's, ReportLab looks
great and obviously capable of doing this.
Unfortunately, I don't know Python, although I'm experienced in other
Is there some sample code for producing a simple multi-page tabular
output? Or a meta-script that is customized for doing this sort of
thing? I see the Flowable Table class, but the documentation examples
aren't quite enough for me, partly because of the newness of Python. I
can probably hobble forward by looking at online Python docs, but if I
can get a jump start, great.
Ideally, I'd like to figure this out as quickly as possible (I'm
creating canvassing lists for an impoverished, long-shot political
candidate friend of mine ;-) and make a longer term intellectual
investment in Python and ReportLab gradually.
More information about the reportlab-users