mlreportgen.dom.InlineHoleContent Class
R2026bNamespace: mlreportgen.dom
Description
An InlineHoleContent object represents the content for an inline
hole defined in a template. An inline hole occurs in a paragraph. You can append only
objects that a paragraph can contain, such as text and images.
You do not create InlineHoleContent objects directly. Access them
through the Holes property of a template-based DOM object such as
mlreportgen.dom.Document or mlreportgen.dom.DocumentPart.
The mlreportgen.dom.InlineHoleContent class is a handle class.
Class Attributes
HandleCompatible | true |
ConstructOnLoad | true |
Properties
Methods
Limitations
An inline hole can contain only inline content, such as text and images. Appending block-level content, such as a
mlreportgen.dom.Paragraphormlreportgen.dom.Table, causes anotInlineHoleCompatibleerror. To hold block-level content, seemlreportgen.dom.BlockHoleContent.Before the write position advances past a hole, append content to that hole. After
moveToNextHoleadvances past a hole, appending to that hole causes aholeContentCannotAppenderror.
Examples
Fill Inline Holes by ID
import mlreportgen.dom.* d = Document("myReport","docx","myTemplate"); dp = DocumentPart(d,"MySection"); dp.Holes("Title").append("Report Title"); dp.Holes("Author").append("Alice Smith"); append(d,dp); close(d); rptview(d);
More About
Version History
Introduced in R2026b