User`s guide

12 Classes – Alphabetical List
12-96
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Top — Top margin size
string
Specify the size using the same format used for the Bottom property.
Examples
Reset Default Margins
Reset the margins specified by the default DOM template.
import mlreportgen.dom.*;
d = Document('myreport','docx');
open(d);
s = d.CurrentDOCXSection;
s.PageMargins.Left = '.5in';
s.PageMargins.Right = '.5in';
append(d,'Left and right margins are .5 inch');
close(d);
rptview('myreport','docx');
See Also
mlreportgen.dom.DOCXSection
More About
“Report Formatting Approaches”