MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guide de l'utilisateur Page 747

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 986
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 746
mlreportgen.dom.RepeatAsHeaderRow class
12-253
import mlreportgen.dom.*;
doctype = 'docx';
d = Document('repeatHeader',doctype);
append(d,'Table 1');
table = Table(ones(15, 2));
table.Style = {Border('solid'),RowSep('solid')};
append(d,table);
Create a second table with repeated row with a table row that cannot break across pages.
append(d,'Table 2');
table = Table(ones(15,2));
table.entry(1,1).Children(1).Content = 'Header A';
table.entry(1,2).Children(1).Content = 'Header B';
table.row(1).Style = {RepeatAsHeaderRow(true)};
table.Style = {Border('solid'),RowSep('solid')};
append(d, table);
table.row(6).Style = {AllowBreakAcrossPages(false)};
table.entry(6,1).Children(1).Content = ...
'Start this row on new page if it does not fit on current page';
for i=2:10
table.entry(6,1).append(Paragraph(Text(i)));
end
close(d);
rptview(d.OutputPath,doctype);
Generate the report.
close(d);
rptview(d.OutputPath,doctype);
“Create and Format Tables”
See Also
mlreportgen.dom.AllowBreakAcrossPages | mlreportgen.dom.TableHeader
More About
“Report Formatting Approaches”
Vue de la page 746
1 2 ... 742 743 744 745 746 747 748 749 750 751 752 ... 985 986

Commentaires sur ces manuels

Pas de commentaire