mlreportgen.dom.HTMLPage Class
Namespace: mlreportgen.dom
Description
Create a single HTML page within a multipage HTML document. Add any Document Object Model
(DOM) API content object, such as Text, Paragraph,
Image, Table, to an HTMLPage object.
Note
You can add an HTMLPage object only to a DOM document of type
html-multipage.
The mlreportgen.dom.HTMLPage class is a handle class.
Creation
Description
creates an empty htmlPageObj = mlreportgen.dom.HTMLPageHTMLPage object that generates an HTML file. By default,
the filename is the Document name appended with the page number, except
for the first page, which is root.html. Use its append
method to add content to the HTML page. When added to a DOM Document of
type html-multipage, the API generates an HTML file, which corresponds
to a single page of the multipage HTML report.
also specifies the htmlPageObj = mlreportgen.dom.HTMLPage(fileName)fileName.
also specifies the custom template htmlPageObj = mlreportgen.dom.HTMLPage(fileName,templatePath)templatePath.
also specifies htmlPageObj = mlreportgen.dom.HTMLPage(fileName,domObj)domObj as the page content.
Properties
Methods
Examples
Version History
Introduced in R2024a