[reportlab-users] Spreadsheet Table

Steve Romanow slestak989 at gmail.com
Tue Feb 23 08:12:46 EST 2010


On 2/18/2010 10:43 AM, Tomasz Świderski wrote:

> Hello,

>

> as promised in

> http://two.pairlist.net/pipermail/reportlab-users/2010-February/009312.html

> I am introducing Spreadsheet Table. It's based of platypus/tables.py

> and have exacly the same properties. It passes all old_tables_tests.

>

> In addition to reportlab 2.4 Table functionalities it can:

> - repeat rows from below

> - calculate formulas on runtime.

>

> Each formula is subclass of Formula class. It has _evaluate method

> with definition:

>

> def _evaluate(self, data, repeat_rows, repeat_rows_b, active_rows,

> cell_coord):

>

> data - all data passed to Table on creation time

> repeat_rows, repeat_rows_b - how many rows are repeated on top, bottom

> of Table

> active_rows - tuple containing range of visible rows

> cell_coord - tuple containing col, row position of evaluated formula

>

> This information is enough to calculate sum of column values from

> current page, certain range of data (not necessarily one row or

> column) etc.

>

> I didn't have much time so I implemented only two formulas for demo

> needs. I believe it is possible to emulate all spreadsheet formulas

> with it. It should be no problem to write formula for time addition

> etc. Since Formula class have access to it's cell style - you can

> change colors depending of cell value, for example black font for

> positive and red for negative numbers.

>

> I'm looking forward to any comments about this Spreadsheet

> implementation.

>

> Best regards,

> Tomasz Świderski

>

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at lists2.reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>

Tomasz,

TY so much for your work. Is there a common vcs repo that is used for
the community?

Cant wait to start contributing.

Slestak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100223/59d8ac58/attachment.html>


More information about the reportlab-users mailing list