MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guia do Utilizador Página 747

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 986
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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”
Vista de página 746
1 2 ... 742 743 744 745 746 747 748 749 750 751 752 ... 985 986

Comentários a estes Manuais

Sem comentários