User`s guide
mlreportgen.dom.RowHeight class
12-259
String having the format valueUnits, where Units is an abbreviation for the units in
which the height is expressed. The following abbreviations are valid:
• no abbreviation — pixels
• cm — centimeters
• in — inches
• mm — millimeters
• pi — picas
• pt — points
• px — pixels
Examples
Specify Table Row Heights
Create a table with two rows. The first row has a variable height and the second has a
fixed maximum height.
import mlreportgen.dom.*;
d = Document('myTableDoc','docx');
t = Table(2);
t.Style = {Border('solid'),RowSep('solid'),ColSep('solid')};
t.Width = '1in';
r1 = TableRow();
r1.Style = {RowHeight('.25in','atleast')};
append(r1,TableEntry(...
'This row can expand beyond .25 inches'));
append(r1,TableEntry('x'));
r2 = TableRow();
r2.Style = {RowHeight('.25in','exact')};
append(r2,TableEntry...
('Truncated text because height is fixed'));
append(r2,TableEntry('x'));
append(t,r1);
append(t,r2);
append(d,t);