Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py	(revision 10566)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py	(revision 10567)
@@ -70,4 +70,5 @@
 from reportlab.lib.units import cm
 from reportlab.platypus import Paragraph, Table, Spacer
+from reportlab.platypus.flowables import Flowable
 from waeup.kofa.reports import IReport, IReportGenerator
 from waeup.kofa.reports import Report
@@ -77,10 +78,26 @@
 STYLE = getSampleStyleSheet()
 
+class TTR(Flowable): #TableTextRotate
+    '''Rotates a text in a table cell.'''
+
+    def __init__(self, text):
+        Flowable.__init__(self)
+        self.text=text
+
+    def draw(self):
+        canvas = self.canv
+        canvas.rotate(45)
+        canvas.drawString( 0, -1, self.text)
+
+    #def wrap(self,aW,aH):
+    #    canv = self.canv
+    #    return canv._leading, canv.stringWidth(self.text)
+
 def tbl_data_to_table(data):
     result = []
-    new_col_names = ('Student Id', _('Matric No.'), _('Name') ,
-                     _('Total Credits'), _('Total Credits Passed'),
-                     _('GPA'), _('Courses Failed'))
-    table = [new_col_names]
+    col_names = ('Student Id', 'Matric No.', 'Name',
+                     TTR('Total Credits'), TTR('Total Credits Passed'),
+                     'GPA', 'Courses Failed')
+    table = [col_names]
     for line in data:
         table.append(line)
@@ -89,16 +106,12 @@
 TABLE_STYLE = [
     ('FONT', (0,0), (-1,-1), 'Helvetica', 8),
-    ('FONT', (0,0), (0,-1), 'Helvetica-Bold', 8),
-    ('FONT', (0,0), (-1,0), 'Helvetica-Bold', 8),
-    ('FONT', (0,-1), (-1,-1), 'Helvetica-Bold', 8),
-    ('FONT', (-1,0), (-1,-1), 'Helvetica-Bold', 8),
+    #('FONT', (0,0), (0,-1), 'Helvetica-Bold', 8), # 1st column
+    ('FONT', (0,0), (-1,0), 'Helvetica-Bold', 8), # 1st row
+    #('FONT', (0,-1), (-1,-1), 'Helvetica-Bold', 8), # last row
+    #('FONT', (-1,0), (-1,-1), 'Helvetica-Bold', 8), # last column
     ('ALIGN', (1,1), (-1,-1), 'RIGHT'),
-    ('INNERGRID', (0,0), (-1,-1), 0.25, colors.black),
-    ('LINEBELOW', (0,-1), (-1,-1), 0.25, colors.black),
-    ('LINEAFTER', (-1,0), (-1,-1), 0.25, colors.black),
-    ('LINEBEFORE', (-1,0), (-1,-1), 1.0, colors.black),
-    #('LINEABOVE', (0,-1), (-1,-1), 1.0, colors.black),
-    #('LINEABOVE', (0,0), (-1,0), 0.25, colors.black),
-    ('BOX', (0,0), (-1,-1), 1, colors.black),
+    ('ALIGN', (2,0), (2,-1), 'LEFT'),
+    ('INNERGRID', (0,1), (-1,-1), 0.25, colors.black),
+    ('BOX', (0,1), (-1,-1), 1, colors.black),
     ]
 
@@ -140,5 +153,5 @@
                     Spacer(1, 12),]
         pdf_data += [
-            Table(table_data, style=TABLE_STYLE)]   #, colWidths=col_widths)]
+            Table(table_data, style=TABLE_STYLE)] #, colWidths=col_widths)]
         doc_title = 'Level Report'
         pdf = creator.create_pdf(
