User`s guide

13 Create a Report Program
13-70
Image
Table
OrderedList
UnorderedList
CustomElement
Format Table Entries Programmatically
You can use format objects or TableEntry format properties to format a table entry
programmatically.
Formatting Format Object Format Property
Create border around entry Border Border
Color of border Border BorderColor
Thickness of border Border BorderWidth
Create left, right, top, or
bottom entry border
Border n/a
Align entry content top,
bottom, middle
VAlign VAlign
Space between entry
boundary and entry content
InnerMargin InnerMargin
Space between entry
content and its top, bottom,
right, or left boundaries
InnerMargin n/a
Cause entry to span
multiple columns
ColSpan ColSpan
Cause entry to span
multiple rows
RowSpan RowSpan
You can specify formatting for all table entries in a table, use the TableEntriesStyle
property of the Table or FormalTable object. For example, you can set border
formatting.
import mlreportgen.dom.*
t = Table(magic(5));