Package: mlreportgen.dom
Superclasses:
Placeholder for reference to content with specified style name or outline level
Create a placeholder for a reference to content that has a specified style name or outline level. This object applies to Word and PDF reports.
For a Microsoft® Word document, you can append a StyleRef
object
to the header, footer, or in the body text. For PDF, you can append
a StyleRef
object only to the header or footer.
Tip
Use StyleRef
objects to create running headers
and footers in your document. For example, you can use this object
to add the title of the current chapter in the page header.
creates
a reference to the content of the paragraph nearest to this object
whose styleref
= StyleRef()OutlineLevel
property of 1
.
In the headers of Word output, the nearest paragraph is the first paragraph on the current page that has the specified outline level. If there is no such paragraph on the current page, the nearest paragraph is the first paragraph on pages before or after the current page that has the specified outline level.
In the footers of Word output, the nearest paragraph is the last paragraph on the current page that has the specified outline level. If there is no such paragraph on the current page, the nearest paragraph is the first paragraph on pages before or after the current page that has the specified outline level.
In page headers and footers in PDF output, the nearest paragraph is the first paragraph on the current page or on pages in the current page layout section before or after the current page.
creates
a reference to the content of the paragraph nearest to this object
whose styleref
= StyleRef(num
)OutlineLevel
property has the specified level.
creates
a reference to the content of the paragraph nearest to this object
that has the specified style name.styleref
= StyleRef(styleName
)
Method | Purpose |
---|---|
Copy this object. |
mlreportgen.dom.DOCXPageFooter
| mlreportgen.dom.DOCXPageHeader
| mlreportgen.dom.Heading
| mlreportgen.dom.Heading1
| mlreportgen.dom.PageRef
| mlreportgen.dom.Paragraph
| mlreportgen.dom.PDFPageFooter
| mlreportgen.dom.PDFPageHeader