[reportlab-users] How to delete added TableStyles

Björn Platzen reportlab-users@reportlab.com
Fri, 12 Jul 2002 01:32:49 +0200


Hello List!

Im working with PythonPoint on tables with numeric and alphanumeric values. 
Only the alphanumeric values should be left-aligned.

My TableStyle is set to ('ALIGN', (0,0),(-1,-1),'RIGHT')

While processing, I check the values if they are numeric or not.

Here's the code:
if re.search("[a-zA-z]",cell):
    getStyles()[self.style].add('ALIGN',(cC,lC),(cC,lC),'LEFT')

(cC is the actual column, lC is the actual line)

This works fine until I have one table, because when I process the next 
table, all the added Styles are still there and do not fit my second table...

Is there any way to delete these added styles???

Thanks in advance

Bjoern
-- 
------------------------------------------------------------
small office solutions - Lösungen für das Internet

www.sosnetz.de - info@sosnetz.de - 0700-SOSPHONE

Office Krefeld:
Postfach 100 427 - 47704 Krefeld
Fon 0 21 51 / 3 19 45-50 Fax 0 21 51 / 3 19 45-31

Office Moers:
In der Dong 29 - 47445 Moers
Fon 0 28 41 / 88 64 - 41 Fax 0 28 41 / 88 64 -42