Package: mlreportgen.dom
Superclasses:
Create a document part object
Define a document part, a repeatable part of a report. A document part typically has holes that you fill during report generation. You can append a part to a document or to a document part of the same output type.
creates
an HTML document part using the default HTML template. documentPartObj
= DocumentPart()
creates
a document part of the specified type (for example, Microsoft® Word)
based on the default template for that part.documentPart
= DocumentPart(type
)
creates
a document part based on the specified template.documentPartObj
= DocumentPart(type
,templatePath
)
creates
a document part based on the specified document part template in the
specified template.documentPartObj
= DocumentPart(type
,templatePath
,docPartTemplateName
)
creates
a document part based on the specified document part template stored
in the template used by the specified source. The source can be a
document or a document part.documentPartObj
= DocumentPart(templateSrc
,docPartTemplateName
)
Use DocumentPart
methods like you use the
corresponding Document
methods.
Method | Purpose |
---|---|
Use | Append HTML text to document |
Use | Append HTML file contents to document |
Append document element to the document part. | |
Close this document part. You cannot close a document part if it has not been opened or was previously closed. | |
Create document part template. | |
Fill document hole. | |
Get core properties of document part. | |
Get full path of main part of output document. | |
Move to next template hole. | |
Open this document part. You cannot open a document part if it was previously opened or closed. You also cannot open a document part if its library source is closed. | |
Set core properties of document part. |