Hi John,
Yes, borders can be defined for each table entry individually. This can be done by adding the Border format to that particular table entry. Doing this will override any border settings coming from the table borders, rowsep, or colsep for that entry.
Below is a sample script:
import mlreportgen.dom.*;
d = Document('myreport','pdf');
open(d);
t = FormalTable(magic(4));
t.Border = 'solid';
t.ColSep = 'solid';
t.RowSep = 'solid';
te22 = t.Body.entry(2,2);
te22.Style = [te22.Style {Border('double','red','2pt')}];
append(d,t);
close(d);
rptview(d);
Below is the sample output snapshot:
Thanks,
Rahul
Best Answer