User`s guide
12 Classes – Alphabetical List
12-106
Style — Formats defining section style
array of format objects
The formats you specify using this property override corresponding formats defined by
the stylesheet style specified by the StyleName property. The DOM interface ignores
formats that do not apply to this element.
Tag — Tag for document element
string
Tag for document element, specified as a string.
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.
Examples
Change Page Margins of a Document Section
Create a Word report. The value of d.CurrentDOCXSection is [].
import mlreportgen.dom.*;
d = Document('mydoc','docx');
Open the document, which generates a DOCXSection object from the default template
and assigns the handle of the object to d.CurrentDOCXSection.
open(d);
Assign a handle for the document DOCXSection object to the DOCXSection object s.
s = d.CurrentDOCXSection;
Change the left margin of s.
s.PageMargins.Left = '0.5in';
Add some content and display the report.