mlreportgen.dom.DOCXSection class
Package: mlreportgen.dom
Page format and layout for Microsoft Word document section
Compatibility
Note
mlreportgen.dom.DOCXSection
will be removed in a future
release. Use mlreportgen.dom.DOCXPageLayout
for
Word output and mlreportgen.dom.PDFPageLayout
for
PDF output instead.
Description
Use an mlreportgen.dom.DOCXSection
object to define the page
format, headers, and footers of a Word document section.
If this is the first DOCXSection
in a document, then it controls
the page layout of all the document elements from the beginning of a document to this
DOCXSection
.
If this is the second or later DOCXSection
in a document, then it
controls the page layout of all the document elements from the preceding
DOCXSection
to itself.
Before you set properties (such as margin widths) of a DOCXSection
object, open the Document
object that contains the
DOCXSection
object.
Construction
creates an
empty document section. docxSectionObj
= DOCXSection()