User`s guide

12 Classes – Alphabetical List
12-244
Method Purpose
clone Copy paragraph.
Examples
Add Paragraphs
Add a paragraph with text and another with an external link.
import mlreportgen.dom.*
doc = Document('mydoc','html');
p1 = Paragraph('This will be bold text');
p1.Bold = true;
link = ExternalLink('http://www.mathworks.com/', 'MathWorks');
p2 = Paragraph(link);
p2.BackgroundColor = 'yellow';
append(doc,p1);
append(doc,p2);
close(doc);
rptview('mydoc','html');
“Add Content to a Report”
See Also
mlreportgen.dom.LineSpacing | mlreportgen.dom.Text
More About
“Report Formatting Approaches”