예제 #1
0
파일: test.py 프로젝트: Manexware/podunk
col.row.format = format_us_currency
col.row.style.horizontal_alignment = alignment.RIGHT

for x in range(10):
    table2.add_row([
        'Smith, John',
        10.0,
        80.0,
        800.0,
    ])

#table.count_column('employee', 8)
#table.average_column('employee', 1)
#table.sum_column('employee', 2)
#table.sum_column('employee', 3)
table2.bold_column('employee', 1)

# pdf_file=None,
# paper_type=None,
# time_zone=None,
# left_margin=None,
# top_margin=None,
# right_margin=None,
# bottom_margin=None,
# date_flag=None,
# flag_footer=None,
# logo=None,
# logo_filename=None,
# logo_width=None,
# logo_height=None):
report = Report('demo.pdf', paper.A4_PORTRAIT, None, None, None, None, None,