User`s guide
12 Classes – Alphabetical List
12-186
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Top — Size of top margin
string
String specifying the top margin between the content of an object and its bounding box.
See the Bottom property description for valid strings.
Examples
Add Inner Margins to a Paragraph
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
p = Paragraph('Hello World');
p.Style = {Border('solid','red'), ...
HAlign('center'),InnerMargin('12pt')};
append(d,p);
p = Paragraph('More Greetings');
p.Style = {Border('solid','blue'), ...
HAlign('center'),InnerMargin('30pt')};
append(d,p);
close(d);
rptview('test',doctype);
See Also
mlreportgen.dom.OuterMargin
More About
• “Report Formatting Approaches”