append
Class: mlreportgen.report.Report
Namespace: mlreportgen.report
Syntax
append(report,content)
Description
append(
adds the
specified content to the report. If the report is not already open, the
report
,content
)append
method opens it.
Note
You can add a reporter to a report multiple times, but you cannot add the reporter to
different reports. For example, if you add an mlreportgen.report.TitlePage
reporter to one report, you cannot add it to another report.
Input Arguments
Examples
Tips
When you append instances of
mlreportgen.dom.Text
,mlreportgen.dom.Number
,mlreportgen.dom.InternalLink
, ormlreportgen.dom.ExternalLink
objects in reports, the object content appends differently depending on the report format. In HTML reports, the content appends in the same line. In PDF and DOCX reports, the content appends in separate lines. To append the content in the same line, create amlreportgen.dom.Paragraph
object, append the content to the paragraph object by using theappend
method, then append the paragraph object to the report object.
Version History
Introduced in R2020b