Report Generator DocumentPart ReportTOC Font Size

1 visualizzazione (ultimi 30 giorni)
How do I change the font size at the end of the TOC? It is extremely large at 1638 using the following code:
import mlreportgen.dom.*;
doc = Document('testing','docx');
open(doc);
append(doc,DocumentPart(doc,'ReportTOC'));
close(doc);
rptview(doc.OutputPath);
I checked the template and the table of contents there does not have this font size at the end.
Reproduced the same issue using the documentation code found below and switching the document type from pdf to docx.
import mlreportgen.dom.*;
d = Document('MyReport','docx');
append(d,'My Report');
append(d,DocumentPart(d,'ReportTOC'));
append(d,Heading1('Chapter 1'));
append(d,Heading2('Section 1'));
close(d);
rptview(d.OutputPath);

Risposte (0)

Prodotti


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by