Documentation

mlreportgen.dom.FormalTable.appendFooterRow

Package:mlreportgen.dom

Append row to table footer

Syntax

  • rowObjOut = appendFooterRow(tableObj,rowObj)
    example

Description

example

rowObjOut= appendFooterRow(tableObj,rowObj)附加一个row of table entries to the footer of a table.

Examples

collapse all

Append a Table Footer

Create, format, and append a formal table.

importmlreportgen.dom.*; myReport = Document('myDoc','html'); table = FormalTable({'row1 - col1''row1 - col2 ';...'row2 - col1''row2 - col2'}); table.Style = {Border('double'),ColSep('solid'),RowSep('solid')}; append(myReport,table);

Create a row (and its entries) for the footer. Use bold text for the text in the row.

rowForFooter = TableRow(); rowForFooter.Style = {Bold(true)}; col1Title = TableEntry('Column 1 footer'); col2Title = TableEntry('Column 2 footer'); append(rowForFooter,col1Title); append(rowForFooter,col2Title);

Append the footer row and display the report.

footerRow = appendFooterRow(table,rowForFooter); close(myReport); rptview('myDoc','html');

Related Examples

Input Arguments

collapse all

tableObj— Tablemlreportgen.dom.FormalTableobject

Table that contains the footer to append a row to.

rowObj— Row to append to table footermlreportgen.dom.TableRowobject

Row to append to the table footer, specified as anmlreportgen.dom.TableRowobject.

Output Arguments

collapse all

rowObjOut— Row appended to table footermlreportgen.dom.TableRowobject

Row appended to the table footer, represented by anmlreportgen.dom.TableRowobject.

Introduced in R2014b

Was this topic helpful?